Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 254a2f3

Browse files
committed
Remove debug lines
1 parent 14cd25d commit 254a2f3

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

synapse/event_auth.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -343,17 +343,7 @@ def _is_membership_change_allowed(
343343
# * They are accepting a previously sent invitation.
344344
# * They are already joined (it's a NOOP).
345345
# * The room is public or restricted.
346-
logger.info(
347-
"check join aewffaewafewf %s %s",
348-
event.user_id,
349-
target_user_id,
350-
)
351346
if event.user_id != target_user_id:
352-
logger.error(
353-
"Cannot force another user to join aewffaewafewf %s %s",
354-
event.user_id,
355-
target_user_id,
356-
)
357347
raise AuthError(403, "Cannot force another user to join.")
358348
elif target_banned:
359349
raise AuthError(403, "You are banned from this room")

synapse/rest/client/v1/room.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515

1616
""" This module contains REST servlets to do with rooms: /rooms/<paths> """
17-
import copy
1817
import logging
1918
import re
2019
from typing import TYPE_CHECKING, Dict, List, Optional, Tuple

0 commit comments

Comments
 (0)