From a02d7015f4c45c782d81c526a068cde73fc7bf8f Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Thu, 18 Mar 2010 13:49:38 -0700 Subject: Properly create user objects in addaccess and rmaccess. --- usr/local/sbin/addaccess | 2 +- usr/local/sbin/rmaccess | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local') diff --git a/usr/local/sbin/addaccess b/usr/local/sbin/addaccess index f0a4324..8d0cef9 100755 --- a/usr/local/sbin/addaccess +++ b/usr/local/sbin/addaccess @@ -16,4 +16,4 @@ if ( $repo->owner->uid != $env->user->uid ) { exit( 3 ); }; -$repo->add_access( @users ); +$repo->add_access( map { Piny::User->new( $_ ) } @users ); diff --git a/usr/local/sbin/rmaccess b/usr/local/sbin/rmaccess index 563216d..f84fba0 100755 --- a/usr/local/sbin/rmaccess +++ b/usr/local/sbin/rmaccess @@ -16,4 +16,4 @@ if ( $repo->owner->uid != $env->user->uid ) { exit( 3 ); }; -$repo->remove_access( @users ); +$repo->remove_access( map { Piny::User->new( $_ ) } @users ); -- cgit v1.2.3