mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 00:28:22 +00:00
fix: [RoleManager] remove debug print
This commit is contained in:
parent
1573f5e495
commit
7c7f3677ba
1 changed files with 0 additions and 5 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue