mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
This allows for creation of subresources when posting new objects to a subcollection.
This commit is contained in:
@@ -371,6 +371,10 @@ class Host(CommonModelNameNotUnique):
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
@classmethod
|
||||
def can_user_read(cls, user, obj):
|
||||
return Inventory.can_user_read(user, obj.inventory)
|
||||
|
||||
@classmethod
|
||||
def can_user_add(cls, user, data):
|
||||
|
||||
Reference in New Issue
Block a user