summaryrefslogtreecommitdiff
path: root/usr/local/sbin/rmaccess
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-03-18 13:32:15 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-03-18 13:32:15 -0700
commite448007d21a2fd89ef42085bc29beb2883eb35ff (patch)
tree9f01f2af7461c9c89cbd62094cfd52f631f95001 /usr/local/sbin/rmaccess
parent5c15bb8217e8e0fb189cf162c233704dd13b737e (diff)
downloadpiny-code-e448007d21a2fd89ef42085bc29beb2883eb35ff.tar.gz
piny-code-e448007d21a2fd89ef42085bc29beb2883eb35ff.zip
Fix checking owner in addaccess/rmaccess.
Diffstat (limited to 'usr/local/sbin/rmaccess')
-rwxr-xr-xusr/local/sbin/rmaccess2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/sbin/rmaccess b/usr/local/sbin/rmaccess
index 86b2dd0..563216d 100755
--- a/usr/local/sbin/rmaccess
+++ b/usr/local/sbin/rmaccess
@@ -11,7 +11,7 @@ my ( $reponame, @users ) = @ARGV;
my $repo = Piny::Repo->new( $reponame );
-if ( $repo->user->uid != $env->user->uid ) {
+if ( $repo->owner->uid != $env->user->uid ) {
print "You are not the owner of that repo!\n";
exit( 3 );
};