From e448007d21a2fd89ef42085bc29beb2883eb35ff Mon Sep 17 00:00:00 2001
From: Julian Blake Kongslie <jblake@omgwallhack.org>
Date: Thu, 18 Mar 2010 13:32:15 -0700
Subject: Fix checking owner in addaccess/rmaccess.

---
 usr/local/sbin/rmaccess | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'usr/local/sbin/rmaccess')

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 );
 };
-- 
cgit v1.2.3