mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 09:27:31 -02:30
removed hostname check when editing hostname on existing host (#13057)
This commit is contained in:
@@ -993,9 +993,6 @@ class HostAccess(BaseAccess):
|
|||||||
if data and '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'])
|
||||||
|
|
||||||
# Check the per-org limit
|
|
||||||
self.check_org_host_limit({'inventory': obj.inventory}, 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
|
||||||
# the user can edit variable data.
|
# the user can edit variable data.
|
||||||
return obj and self.user in obj.inventory.admin_role
|
return obj and self.user in obj.inventory.admin_role
|
||||||
|
|||||||
Reference in New Issue
Block a user