mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
dont check license in API browser method evaluation
This commit is contained in:
parent
e5f7556fc2
commit
a54b2ff468
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user