addPolicy(new ContextAccessPolicy($request, $roleAssignments)); return parent::authorize($request, $args, $roleAssignments); } // // Getters and Setters // /** * Get if the current tab is in wizard mode. * @return boolean */ function getWizardMode() { return $this->_wizardMode; } /** * Set if the current tab is in wizard mode. * @param $wizardMode boolean */ function setWizardMode($wizardMode) { $this->_wizardMode = (boolean)$wizardMode; } // // Extended methods from SettingsTabHandler // /** * @copydoc SettingsTabHandler::initialize() */ function initialize($request, $args = null) { $this->setWizardMode($request->getUserVar('wizardMode')); parent::initialize($request, $args); // Load handler specific translations. AppLocale::requireComponents(LOCALE_COMPONENT_PKP_MANAGER, LOCALE_COMPONENT_APP_MANAGER, LOCALE_COMPONENT_PKP_GRID); } } ?>