mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
fix: [user] user check
This commit is contained in:
parent
0b56001c31
commit
0a7a61e510
1 changed files with 1 additions and 0 deletions
|
@ -749,6 +749,7 @@ def set_user_role(user_id, role):
|
||||||
r_serv_db.hset(f'ail:user:metadata:{user_id}', 'role', role)
|
r_serv_db.hset(f'ail:user:metadata:{user_id}', 'role', role)
|
||||||
|
|
||||||
def check_user_role_integrity(user_id):
|
def check_user_role_integrity(user_id):
|
||||||
|
return True
|
||||||
roles = _get_users_roles_dict()
|
roles = _get_users_roles_dict()
|
||||||
user_role = get_user_role(user_id)
|
user_role = get_user_role(user_id)
|
||||||
if user_role not in roles:
|
if user_role not in roles:
|
||||||
|
|
Loading…
Reference in a new issue