[open-ils-commits] r8783 -
branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Feb 19 17:59:16 EST 2008
Author: erickson
Date: 2008-02-19 17:28:57 -0500 (Tue, 19 Feb 2008)
New Revision: 8783
Modified:
branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Picklist.pm
Log:
added ability to view picklist entries if you can view the picklist
Modified: branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Picklist.pm
===================================================================
--- branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Picklist.pm 2008-02-19 22:11:53 UTC (rev 8782)
+++ branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Application/Acq/Picklist.pm 2008-02-19 22:28:57 UTC (rev 8783)
@@ -320,8 +320,11 @@
my $picklist = $e->retrieve_acq_picklist($pl_entry->picklist)
or return $e->event;
- return OpenILS::Event->new('BAD_PARAMS')
- if $picklist->owner != $e->requestor->id;
+ if($picklist->owner != $e->requestor->id) {
+ return $e->event unless
+ $e->allowed('VIEW_PICKLIST', undef, $picklist);
+ }
+
return $pl_entry;
}
More information about the open-ils-commits
mailing list