[open-ils-commits] r8720 -
branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Feb 11 15:58:13 EST 2008
Author: erickson
Date: 2008-02-11 15:29:01 -0500 (Mon, 11 Feb 2008)
New Revision: 8720
Modified:
branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm
Log:
rolling back calls to object_perm on create methods, since the object does not exist yet
Modified: branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm
===================================================================
--- branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm 2008-02-11 20:06:06 UTC (rev 8719)
+++ branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm 2008-02-11 20:29:01 UTC (rev 8720)
@@ -35,7 +35,7 @@
my($self, $conn, $auth, $funding_source) = @_;
my $e = new_editor(xact=>1, authtoken=>$auth);
return $e->die_event unless $e->checkauth;
- return $e->die_event unless $e->allowed('ADMIN_FUNDING_SOURCE', $funding_source->owner, $funding_source);
+ return $e->die_event unless $e->allowed('ADMIN_FUNDING_SOURCE', $funding_source->owner);
$e->create_acq_funding_source($funding_source) or return $e->die_event;
$e->commit;
return $funding_source->id;
@@ -164,7 +164,7 @@
my($self, $conn, $auth, $fund) = @_;
my $e = new_editor(xact=>1, authtoken=>$auth);
return $e->die_event unless $e->checkauth;
- return $e->die_event unless $e->allowed('ADMIN_FUND', $fund->org, $fund);
+ return $e->die_event unless $e->allowed('ADMIN_FUND', $fund->org);
$e->create_acq_fund($fund) or return $e->die_event;
$e->commit;
return $fund->id;
@@ -330,7 +330,7 @@
my $source = $e->retrieve_acq_funding_source($fund_alloc->funding_source)
or return $e->die_event;
- return $e->die_event unless $e->allowed('MANAGE_FUNDING_SOURCE', $source->owner, $source);
+ return $e->die_event unless $e->allowed('MANAGE_FUNDING_SOURCE', $source->owner);
my $fund = $e->retrieve_acq_fund($fund_alloc->fund) or return $e->die_event;
return $e->die_event unless $e->allowed('MANAGE_FUND', $fund->org, $fund);
More information about the open-ils-commits
mailing list