diff --git a/awx/main/access.py b/awx/main/access.py index b9a2dfa3da..2e91de385b 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -1038,7 +1038,7 @@ class InventorySourceAccess(NotificationAttachMixin, BaseAccess): def can_add(self, data): if not data or 'inventory' not in data: - return Organization.accessible_objects(self.user, 'admin_role').exists() + return Inventory.accessible_objects(self.user, 'admin_role').exists() if not self.check_related('source_project', Project, data, role_field='use_role'): return False