1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

driveby cleanup

This commit is contained in:
Wayne Witzel III 2016-07-26 12:09:58 -04:00
parent 9bad20cee3
commit 74b013aad0

View File

@ -1688,8 +1688,7 @@ class RoleAccess(BaseAccess):
if not check_user_access(self.user, sub_obj.__class__, 'read', sub_obj):
return False
if obj.object_id and \
isinstance(obj.content_object, ResourceMixin) and \
if isinstance(obj.content_object, ResourceMixin) and \
self.user in obj.content_object.admin_role:
return True
return False