private function allowSVNTokensForProject($project_to_migrate) { $project = $this->project_manager->getProjectFromAutocompleter($project_to_migrate); if ($project && $this->token_manager->canAuthorizeTokens($project)) { $this->token_manager->setProjectAuthorizesTokens($project); $this->event_manager->processEvent(Event::SVN_AUTHORIZE_TOKENS, array('group_id' => $project->getID())); $GLOBALS['Response']->addFeedback(Feedback::INFO, $GLOBALS['Language']->getText('svn_tokens', 'allowed_project_allow_project')); } else { $this->sendUpdateProjectListError(); } }
/** * @param array $projectInfo The project data db row * * @return SVN_Apache */ public function get(array $projectInfo, $requested_authentication_method) { $project = $this->project_manager->getProjectFromDbRow($projectInfo); $project_authorizes_tokens = $this->token_manager->isProjectAuthorizingTokens($project); $svn_apache_auth = $this->getModFromPlugins($projectInfo, $requested_authentication_method, $project_authorizes_tokens); if (!$svn_apache_auth) { if ($project_authorizes_tokens) { $svn_apache_auth = new SVN_Apache_ModPerl($projectInfo); } else { $svn_apache_auth = $this->getModFromLocalIncFile($projectInfo, $requested_authentication_method); } } return $svn_apache_auth; }
/** * @param array $projectInfo The project data db row * * @return SVN_Apache */ public function get($projectInfo) { $requested_authentication_method = ForgeConfig::get(SVN_Apache_SvnrootConf::CONFIG_SVN_AUTH_KEY); $svn_apache_auth = $this->getModFromPlugins($projectInfo, $requested_authentication_method); if (!$svn_apache_auth) { $project = $this->project_manager->getProjectFromDbRow($projectInfo); if ($this->token_manager->isProjectAuthorizingTokens($project)) { $svn_apache_auth = new SVN_Apache_ModPerl($projectInfo); } else { $svn_apache_auth = $this->getModFromLocalIncFile($projectInfo, $requested_authentication_method); } } return $svn_apache_auth; }