diff --git a/doc/3-faq-tips-etc.mkd b/doc/3-faq-tips-etc.mkd index 5dcd935..6147e95 100644 --- a/doc/3-faq-tips-etc.mkd +++ b/doc/3-faq-tips-etc.mkd @@ -389,6 +389,7 @@ shell: R W gitolite-admin R W indic_web_input R W proxy + @ @ testing R W vkc Note that until this version, we used to put out an ugly `need diff --git a/src/gl-auth-command b/src/gl-auth-command index 5da4878..31d1fa8 100755 --- a/src/gl-auth-command +++ b/src/gl-auth-command @@ -67,8 +67,8 @@ unless ($ENV{SSH_ORIGINAL_COMMAND}) { system("cat", "$GL_ADMINDIR/src/VERSION"); print "\ryou have the following permissions:\n\r"; for my $r (sort keys %repos) { - my $perm .= " R" if $repos{$r}{R}{$user}; - $perm .= " W" if $repos{$r}{W}{$user}; + my $perm .= ( $repos{$r}{R}{'@all'} ? ' @' : ( $repos{$r}{R}{$user} ? ' R' : '' ) ); + $perm .= ( $repos{$r}{W}{'@all'} ? ' @' : ( $repos{$r}{W}{$user} ? ' W' : '' ) ); print "$perm\t$r\n\r" if $perm; } exit 1;