Merge pull request #5025 from AlanCoding/5023

dont check license in API browser method evaluation
This commit is contained in:
Alan Rominger 2017-01-28 19:37:14 -05:00 committed by GitHub
commit d2e354d9a8

View File

@ -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