Skip to content

Commit 3ea15a4

Browse files
committed
fix: update permissions in user management endpoint to include USER and EXTENDS_USER roles
1 parent f8254df commit 3ea15a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/users/views/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class UserList(APIView):
127127
tags=[_("User Management")], # type: ignore
128128
responses=UserListApi.get_response())
129129
@has_permissions(RoleConstants.WORKSPACE_MANAGE, RoleConstants.ADMIN, RoleConstants.EXTENDS_ADMIN,
130-
RoleConstants.EXTENDS_WORKSPACE_MANAGE)
130+
RoleConstants.EXTENDS_WORKSPACE_MANAGE, RoleConstants.USER, RoleConstants.EXTENDS_USER)
131131
def get(self, request: Request):
132132
return result.success(UserManageSerializer().get_all_user_list())
133133

0 commit comments

Comments
 (0)