removed hostname check when editing hostname on existing host (#13057)

This commit is contained in:
Sarabraj Singh 2022-10-21 09:28:40 -04:00 committed by GitHub
parent 192f45bbd0
commit e41f20320a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -993,9 +993,6 @@ class HostAccess(BaseAccess):
if data and 'name' in data:
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
# the user can edit variable data.
return obj and self.user in obj.inventory.admin_role