summaryrefslogtreecommitdiff
path: root/pinyadmin/sbin/rmaccess
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2012-06-13 15:23:37 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2012-06-13 15:23:37 -0700
commit1c882c0cbb6710d3c1e49efdc9160999524e9b34 (patch)
treebdb6890a2d0859b64eaa6658b93ce0a4184216c3 /pinyadmin/sbin/rmaccess
parent65d805c56bdf9a3748db2d911046892e370394c6 (diff)
parent911981b2243ee3c15f269f16bdd172f7746564ce (diff)
downloadpiny-code-1c882c0cbb6710d3c1e49efdc9160999524e9b34.tar.gz
piny-code-1c882c0cbb6710d3c1e49efdc9160999524e9b34.zip
Merge branch 'master' of piny.be:/srv/git/piny-code
Diffstat (limited to 'pinyadmin/sbin/rmaccess')
-rwxr-xr-xpinyadmin/sbin/rmaccess2
1 files changed, 1 insertions, 1 deletions
diff --git a/pinyadmin/sbin/rmaccess b/pinyadmin/sbin/rmaccess
index d6c22a9..79fe334 100755
--- a/pinyadmin/sbin/rmaccess
+++ b/pinyadmin/sbin/rmaccess
@@ -11,7 +11,7 @@ my ( $reponame, @users ) = @ARGV;
my $repo = Piny::Repo->new( $reponame );
-if ( $repo->owner->uid != $env->user->uid ) {
+if ( $env->user->uid != 0 and $repo->owner->uid != $env->user->uid ) {
print "You are not the owner of that repo!\n";
exit( 3 );
};