addTplParam('force2FA', true); $userID = $this->d3GetSessionObject()->getVariable("auth"); $this->_sEditObjectId = $userID; return parent::render(); } protected function _authorize() { $userID = $this->d3GetSessionObject()->getVariable("auth"); return ($this->d3IsAdminForce2FA() && !empty($userID)); } /** * @return Session */ private function d3GetSessionObject() { return Registry::getSession(); } /** * @return bool */ private function d3IsAdminForce2FA() { return $this->isAdmin() && Registry::getConfig()->getConfigParam('D3_TOTP_ADMIN_FORCE_2FA') == true; } }