mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 18:20:00 -03:30
AC-688 Fixed error adding team credential, added test.
This commit is contained in:
@@ -746,7 +746,6 @@ class PermissionSerializer(BaseSerializer):
|
||||
res['inventory'] = reverse('api:inventory_detail', args=(obj.inventory.pk,))
|
||||
return res
|
||||
|
||||
|
||||
def validate(self, attrs):
|
||||
# Can only set either user or team.
|
||||
if attrs['user'] and attrs['team']:
|
||||
|
||||
Reference in New Issue
Block a user