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

Commit b4f0b5d

Browse files
committed
Remove debug lines
1 parent 3411d51 commit b4f0b5d

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
@@ -342,17 +342,7 @@ def _is_membership_change_allowed(
342342
# * They are accepting a previously sent invitation.
343343
# * They are already joined (it's a NOOP).
344344
# * The room is public or restricted.
345-
logger.info(
346-
"check join aewffaewafewf %s %s",
347-
event.user_id,
348-
target_user_id,
349-
)
350345
if event.user_id != target_user_id:
351-
logger.error(
352-
"Cannot force another user to join aewffaewafewf %s %s",
353-
event.user_id,
354-
target_user_id,
355-
)
356346
raise AuthError(403, "Cannot force another user to join.")
357347
elif target_banned:
358348
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)