fix: [trackers] fix tracker view objects acl for global trackers

relationships
terrtia 2024-06-24 16:37:30 +02:00
parent db29a2be96
commit 6a3e0502bc
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@ def delete_obj_trackers(obj_type, subtype, obj_id):
## LEVEL ## ## LEVEL ##
def is_tracker_global_level(tracker_uuid): def is_tracker_global_level(tracker_uuid):
return r_tracker.hget(f'tracker:{tracker_uuid}', 'level') == 1 return int(r_tracker.hget(f'tracker:{tracker_uuid}', 'level')) == 1
def is_tracked_in_global_level(tracked, tracker_type): def is_tracked_in_global_level(tracked, tracker_type):
for tracker_uuid in get_trackers_by_tracked(tracker_type, tracked): for tracker_uuid in get_trackers_by_tracked(tracker_type, tracked):