refac
This commit is contained in:
1 parent
2cbba2a28a
commit
c9a78e5476
1 file changed
+1
-1
@@ -1578,7 +1578,7 @@ async def update_message_by_id(
|
||||
if (
|
||||
user.role != "admin"
|
||||
and message.user_id != user.id
|
||||
and not channel_has_access(user.id, channel, permission="read", db=db)
|
||||
and not channel_has_access(user.id, channel, permission="write", strict=False, db=db)
|
||||
):
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.DEFAULT()
|
||||
|
||||
Reference in new issue
Block a user