Skip to content

Commit

Permalink
fix: [RoleManager] remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Nov 25, 2019
1 parent 1573f5e commit 7c7f367
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions var/www/modules/Role_Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,8 @@ def create_user_db(username_id , password, default=False, role=None, update=Fals
if default:
r_serv_db.hset('user_metadata:{}'.format(username_id), 'change_passwd', True)
if role:
print(role)
print(get_all_role())
if role in get_all_role():
print('yep')
print(get_all_user_role(role))
for role_to_add in get_all_user_role(role):
print(role)
r_serv_db.sadd('user_role:{}'.format(role_to_add), username_id)
r_serv_db.hset('user_metadata:{}'.format(username_id), 'role', role)

Expand Down

0 comments on commit 7c7f367

Please sign in to comment.