mirror of
https://github.com/ansible/awx.git
synced 2026-08-02 02:49:58 -02:30
Start RBAC unit testing system to test is_implicit_parent
This commit is contained in:
@@ -181,7 +181,7 @@ def rbac_activity_stream(instance, sender, **kwargs):
|
||||
elif sender.__name__ == 'Role_parents':
|
||||
role = kwargs['model'].objects.filter(pk__in=kwargs['pk_set']).first()
|
||||
# don't record implicit creation / parents in activity stream
|
||||
if role is not None and is_implicit_parent(role, instance):
|
||||
if role is not None and is_implicit_parent(parent_role=role, child_role=instance):
|
||||
return
|
||||
else:
|
||||
role = instance
|
||||
|
||||
Reference in New Issue
Block a user