#NEWLINE# def has_permission( self , request , view ) : #NEWLINE# #INDENT# '\n        Check if user is a superuser.\n\n        Parameters\n        ----------\n        request : rest_framework.request.Request\n            Object representing the request.\n        view : rest_framework.views.APIView\n            View that called the permission.\n\n        Returns\n        -------\n        Boolean\n            Indicating if user is a superuser.\n        ' #NEWLINE# return ( request . user and request . user . is_superuser )