mirror of
https://github.com/ansible/awx.git
synced 2026-06-22 15:17:44 -02:30
Fix server error assigning teams EE object roles (#15320)
This commit is contained in:
@@ -68,5 +68,5 @@ class ExecutionEnvironment(CommonModel):
|
||||
raise ValidationError({'user': _('User must have view permission to Execution Environment organization')})
|
||||
if actor._meta.model_name == 'team':
|
||||
organization_cls = self._meta.get_field('organization').related_model
|
||||
if self.orgaanization not in organization_cls.access_qs(actor, 'view'):
|
||||
if self.organization not in organization_cls.access_qs(actor, 'view'):
|
||||
raise ValidationError({'team': _('Team must have view permission to Execution Environment organization')})
|
||||
|
||||
Reference in New Issue
Block a user