@staticmethod
def check(request, handler):
    """
        Check permission method.

        :param request: instance of Request class.
        :param handler: view, invoked later for the request.
        """
    return request.user and request.user.is_authenticated()
