Indefero

Indefero Commit Details


Date:2011-01-06 04:13:29 (13 years 11 months ago)
Author:William MARTIN
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:439f1fefe29d986d91b21e6ae34da53a72d8a3b8
Parents: 4245617c6f2972ffb7a21723da809dc4c34113af
Message:Fix issue 588 : Redirect connected user to the anonymous url if they don't have register a SSH Key for GIT

Changes:

File differences

src/IDF/Scm/Git.php
280280
281281
282282
283
284
285
286
287
288
289
290
283291
284292
285293
public static function getAuthAccessUrl($project, $user, $commit=null)
{
// if the user haven't registred a public ssh key,
// he can't use the write url which use the SSH authentification
if ($user != null) {
$keys = $user->get_idf_key_list();
if (count ($keys) == 0)
return self::getAnonymousAccessUrl($project);
}
return sprintf(Pluf::f('git_write_remote_url'), $project->shortname);
}

Archive Download the corresponding diff file

Page rendered in 0.07329s using 14 queries.