diff options
Diffstat (limited to 'pinyadmin/sbin/pinyconfig')
-rwxr-xr-x | pinyadmin/sbin/pinyconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pinyadmin/sbin/pinyconfig b/pinyadmin/sbin/pinyconfig index 03531b1..039d6b4 100755 --- a/pinyadmin/sbin/pinyconfig +++ b/pinyadmin/sbin/pinyconfig @@ -41,7 +41,7 @@ if ( not defined $attr ) { $attr =~ s/\./_/g; if ( defined $value ) { - if ( $env->user->uid != 0 and $repo->owner->uid != $env->user->uid ) { + unless ( $env->user->uid == 0 or $reponame eq "--user" or $repo->owner->uid == $env->user->uid ) { print "You are not the owner of that repo!\n"; exit( 3 ); }; |