Skip to content

Commit

Permalink
fix(permission-db): get the group ids from user.groups
Browse files Browse the repository at this point in the history
  • Loading branch information
mabw-rte committed Feb 14, 2024
1 parent 0c10100 commit db8245a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antarest/study/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def build_query_user_from_params(params: t.Union[RequestParameters, JWTUser]) ->
return QueryUser(
is_admin=user.is_site_admin() or user.is_admin_token(),
user_id=user.id,
user_groups=user.groups,
user_groups=[group.id for group in user.groups],
)
else:
return QueryUser()
Expand Down

0 comments on commit db8245a

Please sign in to comment.