mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
chore: format
This commit is contained in:
parent
c9a78e5476
commit
2cacc2e649
1 changed files with 3 additions and 1 deletions
|
|
@ -1578,7 +1578,9 @@ 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="write", strict=False, 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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue