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:
Elijah DeLee 2021-06-02 13:05:02 -04:00
parent 043aff6a8c
commit 7818b2008f

View File

@ -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):