fix: [RoleManager] remove debug print

pull/422/head
Terrtia 2019-11-25 10:06:04 +01:00
parent 1573f5e495
commit 7c7f3677ba
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 0 additions and 5 deletions

View File

@ -148,13 +148,8 @@ def create_user_db(username_id , password, default=False, role=None, update=Fals
if default: if default:
r_serv_db.hset('user_metadata:{}'.format(username_id), 'change_passwd', True) r_serv_db.hset('user_metadata:{}'.format(username_id), 'change_passwd', True)
if role: if role:
print(role)
print(get_all_role())
if role in 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): 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.sadd('user_role:{}'.format(role_to_add), username_id)
r_serv_db.hset('user_metadata:{}'.format(username_id), 'role', role) r_serv_db.hset('user_metadata:{}'.format(username_id), 'role', role)