fix: [RoleManager] remove debug print

This commit is contained in:
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

View file

@ -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)