mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Correct the org limit check for changing hosts to use the host's org
instead of an inventory passed in from the user data, which is not allowed.
This commit is contained in:
parent
43a0a15f6f
commit
df8a66e504
@ -876,7 +876,8 @@ class HostAccess(BaseAccess):
|
||||
self.check_license(add_host_name=data['name'])
|
||||
|
||||
# Check the per-org limit
|
||||
self.check_org_host_limit(data, add_host_name=data['name'])
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user