mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 10:57:35 -02:30
use explicit class in super to keep the view inheritable
This commit is contained in:
@@ -1087,7 +1087,7 @@ class UserRolesList(SubListCreateAttachDetachAPIView):
|
|||||||
if not sub_id:
|
if not sub_id:
|
||||||
data = dict(msg='Role "id" field is missing')
|
data = dict(msg='Role "id" field is missing')
|
||||||
return Response(data, status=status.HTTP_400_BAD_REQUEST)
|
return Response(data, status=status.HTTP_400_BAD_REQUEST)
|
||||||
return super(type(self), self).post(request, *args, **kwargs)
|
return super(UserRolesList, self).post(request, *args, **kwargs)
|
||||||
|
|
||||||
def check_parent_access(self, parent=None):
|
def check_parent_access(self, parent=None):
|
||||||
# We hide roles that shouldn't be seen in our queryset
|
# We hide roles that shouldn't be seen in our queryset
|
||||||
|
|||||||
Reference in New Issue
Block a user