diff --git a/backend/open_webui/routers/users.py b/backend/open_webui/routers/users.py index d15708941a..378b682357 100644 --- a/backend/open_webui/routers/users.py +++ b/backend/open_webui/routers/users.py @@ -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,