'Checks if *request.user* has all permissions returned by
*get_required_permissions* method.
:param request: Original request.'

def check_permissions(self, request):

    obj = self.get_permission_object()
    forbidden = get_40x_or_None(request, perms=self.get_required_permissions(request), obj=obj, login_url=self.login_url, redirect_field_name=self.redirect_field_name, return_403=self.return_403, return_404=self.return_404, accept_global_perms=self.accept_global_perms)
    if forbidden:
        self.on_permission_check_fail(request, forbidden, obj=obj)
    if (forbidden and self.raise_exception):
        raise PermissionDenied()
    return forbidden
