Remove debug lines

pull/10419/head
Eric Eastwood 2021-06-29 17:14:40 -05:00
parent e405a23f48
commit 36f1565884
2 changed files with 0 additions and 11 deletions

View File

@ -342,17 +342,7 @@ def _is_membership_change_allowed(
# * They are accepting a previously sent invitation.
# * They are already joined (it's a NOOP).
# * The room is public or restricted.
logger.info(
"check join aewffaewafewf %s %s",
event.user_id,
target_user_id,
)
if event.user_id != target_user_id:
logger.error(
"Cannot force another user to join aewffaewafewf %s %s",
event.user_id,
target_user_id,
)
raise AuthError(403, "Cannot force another user to join.")
elif target_banned:
raise AuthError(403, "You are banned from this room")

View File

@ -14,7 +14,6 @@
# limitations under the License.
""" This module contains REST servlets to do with rooms: /rooms/<paths> """
import copy
import logging
import re
from typing import TYPE_CHECKING, Dict, List, Optional, Tuple