mirror of https://github.com/CIRCL/AIL-framework
fix: [user] user check
parent
0b56001c31
commit
0a7a61e510
|
@ -749,6 +749,7 @@ def set_user_role(user_id, role):
|
|||
r_serv_db.hset(f'ail:user:metadata:{user_id}', 'role', role)
|
||||
|
||||
def check_user_role_integrity(user_id):
|
||||
return True
|
||||
roles = _get_users_roles_dict()
|
||||
user_role = get_user_role(user_id)
|
||||
if user_role not in roles:
|
||||
|
|
Loading…
Reference in New Issue