fix api secret auth (fixes #118)
This commit is contained in:
parent
7c12b649e3
commit
29a1106e93
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class APITokenAuth(HttpBearer):
|
|||
raise APITokenInvalid
|
||||
|
||||
# get user permissions and restrict them based on scopes
|
||||
user_permissions: UserPermissions = secret.user.permissions
|
||||
user_permissions: UserPermissions = UserPermissions.get_for_user(secret.user)
|
||||
if secret.scope_mesh is False:
|
||||
user_permissions.mesh_control = False
|
||||
if secret.scope_editor is False:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue