From a54b2ff468f78e4a342db6c0fb954975644cb250 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Sat, 28 Jan 2017 19:30:09 -0500 Subject: [PATCH] dont check license in API browser method evaluation --- awx/main/access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/access.py b/awx/main/access.py index 9417563f75..059e89e655 100644 --- a/awx/main/access.py +++ b/awx/main/access.py @@ -625,7 +625,7 @@ class HostAccess(BaseAccess): raise PermissionDenied(_('Unable to change inventory on a host.')) # Prevent renaming a host that might exceed license count - if 'name' in data: + if data and 'name' in data: self.check_license(add_host_name=data['name']) # Checks for admin or change permission on inventory, controls whether