docs: def check_perm(self, request, resource):
          """ Check permission
  
          @param request the HTTP request
          @param resource the requested resource
          @raise Forbidden if the user doesn't have access to the resource
          """
  
          perm_name = self.get_perm_name(resource, request.method)
          if not self._has_perm(request.user, perm_name):
              raise errors.Forbidden()