From 7818b2008fac44c36ef1d2e14992f9b23ceb5027 Mon Sep 17 00:00:00 2001 From: Elijah DeLee Date: Wed, 2 Jun 2021 13:05:02 -0400 Subject: [PATCH] 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. --- awx/api/serializers.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 3ba2488a5b..b94631f46c 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -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):