diff options
Diffstat (limited to 'pinyadmin/sbin/addaccess')
-rwxr-xr-x | pinyadmin/sbin/addaccess | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pinyadmin/sbin/addaccess b/pinyadmin/sbin/addaccess index e351114..557ed15 100755 --- a/pinyadmin/sbin/addaccess +++ b/pinyadmin/sbin/addaccess @@ -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 ); }; |