mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +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 ##
|
## 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):
|
||||||
|
|
Loading…
Reference in a new issue