PolicyRegistry.prototype.allow = function () {
  if (this._allow) {
    return this._allow;
  } else {
    throw new Error('Allow policy/middleware is not configured');