mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-09 16:09:10 +00:00
refac
This commit is contained in:
parent
2ed8934f5b
commit
9866a02863
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ async def update_user_settings_by_session_user(
|
|||
db: AsyncSession = Depends(get_async_session),
|
||||
):
|
||||
if user.role != 'admin' and not await has_permission(
|
||||
user.id, 'settings.interface', request.app.state.config.USER_PERMISSIONS
|
||||
user.id, 'settings.interface', await Config.get('user.permissions')
|
||||
):
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_403_FORBIDDEN,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue