[open-ils-commits] r8687 -
branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Feb 7 13:07:58 EST 2008
Author: erickson
Date: 2008-02-07 12:39:22 -0500 (Thu, 07 Feb 2008)
New Revision: 8687
Modified:
branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Provider.pm
Log:
making object specific perm calls by default
Modified: branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Provider.pm
===================================================================
--- branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Provider.pm 2008-02-07 17:38:41 UTC (rev 8686)
+++ branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Provider.pm 2008-02-07 17:39:22 UTC (rev 8687)
@@ -31,7 +31,7 @@
my($self, $conn, $auth, $provider) = @_;
my $e = new_editor(authtoken=>$auth, xact=>1);
return $e->die_event unless $e->checkauth;
- return $e->die_event unless $e->allowed('CREATE_PROVIDER', $provider->owner);
+ return $e->die_event unless $e->allowed('CREATE_PROVIDER', $provider->owner, $provider);
$e->create_acq_provider($provider) or return $e->die_event;
$e->commit;
return $provider->id;
@@ -57,7 +57,7 @@
my $e = new_editor(authtoken=>$auth);
return $e->event unless $e->checkauth;
my $provider = $e->retrieve_acq_provider($provider_id) or return $e->event;
- return $e->event unless $e->allowed('VIEW_PROVIDER', $provider->owner);
+ return $e->event unless $e->allowed('VIEW_PROVIDER', $provider->owner, $provider);
return $provider;
}
More information about the open-ils-commits
mailing list