Skip to content

Commit

Permalink
all admin permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberb committed May 29, 2023
1 parent 59828f1 commit 950b6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cps/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ def create_user(username):
group_data = services.ldap.get_object_details(user=username, query_filter=admin_group_filter)
if group_data:
log.debug(u"LDAP admin group is found: '{}'".format(group_data))
role = constants.ROLE_ADMIN
role = constants.ROLE_ADMIN | constants.ROLE_DELETE_BOOKS | constants.ROLE_DOWNLOAD | constants.ROLE_UPLOAD | constants.ROLE_EDIT | constants.ROLE_EDIT_SHELFS | constants.ROLE_VIEWER
else:
log.debug(u"LDAP admin group is not found")

Expand Down

0 comments on commit 950b6b9

Please sign in to comment.