fix: [user] user check

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

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