diff --git a/awx/api/views.py b/awx/api/views.py index 4cdf4363f3..07f851d342 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -1201,19 +1201,6 @@ class UserRolesList(SubListCreateAttachDetachAPIView): # We hide roles that shouldn't be seen in our queryset return True -class UserObjectRolesList(SubListAPIView): - - model = Role - serializer_class = RoleSerializer - parent_model = User - new_in_300 = True - - def get_queryset(self): - po = self.get_parent_object() - content_type = ContentType.objects.get_for_model(self.parent_model) - return Role.objects.filter(content_type=content_type, object_id=po.pk) - - class UserProjectsList(SubListAPIView): model = Project