mirror of https://github.com/CIRCL/AIL-framework
fix: [trackers] fix tracker view objects acl for global trackers
parent
db29a2be96
commit
6a3e0502bc
|
@ -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 New Issue