mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Allow modifications of managed_by_tower creds
Sysadmins may need to modify managed_by_tower credentials, the only known case of which is a default container registry credential for use by the default execution environments, which are also managed_by_tower and allow modifications.
This commit is contained in:
parent
043aff6a8c
commit
7818b2008f
@ -2603,8 +2603,6 @@ class CredentialSerializer(BaseSerializer):
|
||||
return summary_dict
|
||||
|
||||
def validate(self, attrs):
|
||||
if self.instance and self.instance.managed_by_tower:
|
||||
raise PermissionDenied(detail=_("Modifications not allowed for managed credentials"))
|
||||
return super(CredentialSerializer, self).validate(attrs)
|
||||
|
||||
def get_validation_exclusions(self, obj=None):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user