diff --git a/awx/api/generics.py b/awx/api/generics.py index cb9350c6f9..2f2eca791b 100644 --- a/awx/api/generics.py +++ b/awx/api/generics.py @@ -982,7 +982,7 @@ class CopyAPIView(GenericAPIView): None, None, self.model, obj, request.user, create_kwargs=create_kwargs, copy_name=serializer.validated_data.get('name', '') ) - if hasattr(new_obj, 'admin_role') and request.user not in new_obj.admin_role: + if hasattr(new_obj, 'admin_role') and request.user not in new_obj.admin_role.members.all(): new_obj.admin_role.members.add(request.user) if sub_objs: permission_check_func = None