summaryrefslogtreecommitdiff
path: root/pinyadmin/sbin/rmaccess
diff options
context:
space:
mode:
authorjrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org>2012-05-01 22:04:04 -0700
committerjrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org>2012-05-01 22:04:04 -0700
commit1938e51baa37fc68dc423ab5c29f5ea9c2f58ab3 (patch)
tree3249f4d6092f94ea932e20ca91a410596c5924cb /pinyadmin/sbin/rmaccess
parent5415cc5d59a03bb13faf3247b8c1bfd73651ae5e (diff)
downloadpiny-code-1938e51baa37fc68dc423ab5c29f5ea9c2f58ab3.tar.gz
piny-code-1938e51baa37fc68dc423ab5c29f5ea9c2f58ab3.zip
Adding check for UID 0 to pinyadmin commands so root can actually do things
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 );
};