summaryrefslogtreecommitdiff
path: root/pinyadmin/sbin/pinyconfig
diff options
context:
space:
mode:
authorjrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org>2012-06-01 20:00:32 -0700
committerjrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org>2012-06-01 20:00:32 -0700
commit911981b2243ee3c15f269f16bdd172f7746564ce (patch)
treeda40a878354450508793d3fe6aafaf5d6068ce08 /pinyadmin/sbin/pinyconfig
parent1938e51baa37fc68dc423ab5c29f5ea9c2f58ab3 (diff)
downloadpiny-code-911981b2243ee3c15f269f16bdd172f7746564ce.tar.gz
piny-code-911981b2243ee3c15f269f16bdd172f7746564ce.zip
pinyadmin: pinyconfig: allow --user to actually set things
Diffstat (limited to 'pinyadmin/sbin/pinyconfig')
-rwxr-xr-xpinyadmin/sbin/pinyconfig2
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 );
};