/** * @see AuthorizationPolicy::effect() */ function effect() { // Check the request protocol if ($this->_request->getProtocol() == 'https') { return AUTHORIZATION_PERMIT; } else { return AUTHORIZATION_DENY; } }