fix: [user] user check

otp
terrtia 2024-09-13 10:51:23 +02:00
parent 0b56001c31
commit 0a7a61e510
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 1 additions and 0 deletions

View File

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