chore: format
This commit is contained in:
@@ -1578,7 +1578,9 @@ async def update_message_by_id(
|
|||||||
if (
|
if (
|
||||||
user.role != "admin"
|
user.role != "admin"
|
||||||
and message.user_id != user.id
|
and message.user_id != user.id
|
||||||
and not channel_has_access(user.id, channel, permission="write", strict=False, db=db)
|
and not channel_has_access(
|
||||||
|
user.id, channel, permission="write", strict=False, db=db
|
||||||
|
)
|
||||||
):
|
):
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.DEFAULT()
|
status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.DEFAULT()
|
||||||
|
|||||||
Reference in New Issue
Block a user