mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-22 07:51:52 -05:00
Merge pull request #1592 from wwitzel3/rbac-bug-1426
remove extra validation on project.organization
This commit is contained in:
@@ -899,12 +899,6 @@ class ProjectSerializer(UnifiedJobTemplateSerializer, ProjectOptionsSerializer):
|
||||
args=(obj.last_update.pk,))
|
||||
return res
|
||||
|
||||
def validate(self, attrs):
|
||||
if 'organization' not in attrs or type(attrs['organization']) is not Organization:
|
||||
raise serializers.ValidationError('Missing organization')
|
||||
return super(ProjectSerializer, self).validate(attrs)
|
||||
|
||||
|
||||
|
||||
class ProjectPlaybooksSerializer(ProjectSerializer):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user