Remove debug lines
parent
e405a23f48
commit
36f1565884
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue