Skip to content

Commit

Permalink
@odeimaiz review: deprecated admin users
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Dec 17, 2024
1 parent 0ff2820 commit 0c7e4b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class PermissionDict(TypedDict, total=False):
can=[
"product.details.*",
"product.invitations.create",
"user.admin.read",
"admin.users.read",
],
inherits=[UserRole.TESTER],
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async def search_users(request: web.Request) -> web.Response:

@routes.get(f"/{API_VTAG}/admin/users:search", name="search_users_for_admin")
@login_required
@permission_required("user.admin.read")
@permission_required("admin.users.read")
@_handle_users_exceptions
async def search_users_for_admin(request: web.Request) -> web.Response:
req_ctx = UsersRequestContext.model_validate(request)
Expand All @@ -189,7 +189,7 @@ async def search_users_for_admin(request: web.Request) -> web.Response:
f"/{API_VTAG}/admin/users:pre-register", name="pre_register_user_for_admin"
)
@login_required
@permission_required("user.admin.read")
@permission_required("admin.users.read")
@_handle_users_exceptions
async def pre_register_user_for_admin(request: web.Request) -> web.Response:
req_ctx = UsersRequestContext.model_validate(request)
Expand Down

0 comments on commit 0c7e4b2

Please sign in to comment.