mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-25 23:37:16 +00:00
fix: [trackers] fix tracker view objects acl for global trackers
This commit is contained in:
parent
db29a2be96
commit
6a3e0502bc
1 changed files with 1 additions and 1 deletions
|
@ -763,7 +763,7 @@ def delete_obj_trackers(obj_type, subtype, obj_id):
|
|||
|
||||
## LEVEL ##
|
||||
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):
|
||||
for tracker_uuid in get_trackers_by_tracked(tracker_type, tracked):
|
||||
|
|
Loading…
Reference in a new issue