diff options
Diffstat (limited to 'pinyadmin/sbin/rmaccess')
-rwxr-xr-x | pinyadmin/sbin/rmaccess | 2 |
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 ); }; |