mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 18:37:39 -02:30
dont check license in API browser method evaluation
This commit is contained in:
@@ -625,7 +625,7 @@ class HostAccess(BaseAccess):
|
|||||||
raise PermissionDenied(_('Unable to change inventory on a host.'))
|
raise PermissionDenied(_('Unable to change inventory on a host.'))
|
||||||
|
|
||||||
# Prevent renaming a host that might exceed license count
|
# 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'])
|
self.check_license(add_host_name=data['name'])
|
||||||
|
|
||||||
# Checks for admin or change permission on inventory, controls whether
|
# Checks for admin or change permission on inventory, controls whether
|
||||||
|
|||||||
Reference in New Issue
Block a user