Skip to content

Commit 8c26f16

Browse files
authored
Fix up unit tests (matrix-org#10723)
These were broken in an incorrect merge of GHSA-jj53-8fmw-f2w2 (cb35df9)
1 parent cb35df9 commit 8c26f16

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

changelog.d/10723.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix unauthorised exposure of room metadata to communities.

tests/rest/client/v2_alpha/test_groups.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1-
from synapse.rest.client.v1 import room
2-
from synapse.rest.client.v2_alpha import groups
1+
# Copyright 2021 The Matrix.org Foundation C.I.C.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from synapse.rest.client import groups, room
316

417
from tests import unittest
518
from tests.unittest import override_config

0 commit comments

Comments
 (0)