mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02:30
driveby cleanup
This commit is contained in:
@@ -1688,8 +1688,7 @@ class RoleAccess(BaseAccess):
|
|||||||
if not check_user_access(self.user, sub_obj.__class__, 'read', sub_obj):
|
if not check_user_access(self.user, sub_obj.__class__, 'read', sub_obj):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if obj.object_id and \
|
if isinstance(obj.content_object, ResourceMixin) and \
|
||||||
isinstance(obj.content_object, ResourceMixin) and \
|
|
||||||
self.user in obj.content_object.admin_role:
|
self.user in obj.content_object.admin_role:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user