From 74b013aad0905120410317b4f084deadb578dc7a Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Tue, 26 Jul 2016 12:09:58 -0400 Subject: [PATCH] driveby cleanup --- awx/main/access.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/awx/main/access.py b/awx/main/access.py index 2c01b62065..c109e5d449 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -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