mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-13 03:21:49 -05:00
ensure manually modifying hosts adhears to license
* Super user or not, don't allow adding NOR editing (changing the name of) a host to exceed the host license count.
This commit is contained in:
@@ -1684,8 +1684,10 @@ class HostList(ListCreateAPIView):
|
||||
|
||||
class HostDetail(RetrieveUpdateDestroyAPIView):
|
||||
|
||||
always_allow_superuser = False
|
||||
model = Host
|
||||
serializer_class = HostSerializer
|
||||
permission_classes = (HostPermission,)
|
||||
|
||||
|
||||
class InventoryHostsList(SubListCreateAttachDetachAPIView):
|
||||
|
||||
Reference in New Issue
Block a user