summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/sbin/addaccess2
-rwxr-xr-xusr/local/sbin/rmaccess2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/sbin/addaccess b/usr/local/sbin/addaccess
index e2817ca..f0a4324 100755
--- a/usr/local/sbin/addaccess
+++ b/usr/local/sbin/addaccess
@@ -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 );
};
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 );
};