diff options
-rwxr-xr-x | usr/src/pinyadmin/sbin/rmrepo | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/pinyadmin/sbin/rmrepo b/usr/src/pinyadmin/sbin/rmrepo index e12a067..41c2b13 100755 --- a/usr/src/pinyadmin/sbin/rmrepo +++ b/usr/src/pinyadmin/sbin/rmrepo @@ -11,7 +11,7 @@ foreach my $reponame ( @ARGV ) { my $repo = Piny::Repo->new( $reponame ); - if ( $repo->owner->uid != $env->user->uid ) { + if ( $env->user->uid == 0 or $repo->owner->uid != $env->user->uid ) { print STDERR "You are not the owner of $reponame!\n"; exit 1; }; |