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 accepting a previously sent invitation.
|
||||||
# * They are already joined (it's a NOOP).
|
# * They are already joined (it's a NOOP).
|
||||||
# * The room is public or restricted.
|
# * 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:
|
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.")
|
raise AuthError(403, "Cannot force another user to join.")
|
||||||
elif target_banned:
|
elif target_banned:
|
||||||
raise AuthError(403, "You are banned from this room")
|
raise AuthError(403, "You are banned from this room")
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
""" This module contains REST servlets to do with rooms: /rooms/<paths> """
|
""" This module contains REST servlets to do with rooms: /rooms/<paths> """
|
||||||
import copy
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from typing import TYPE_CHECKING, Dict, List, Optional, Tuple
|
from typing import TYPE_CHECKING, Dict, List, Optional, Tuple
|
||||||
|
|
Loading…
Reference in New Issue