[open-ils-commits] [GIT] Evergreen ILS branch rel_3_2 updated. 2390eba169637fd18c6682a5ddcd6d136edc06ea
Evergreen Git
git at git.evergreen-ils.org
Mon Jan 28 15:16:28 EST 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_3_2 has been updated
via 2390eba169637fd18c6682a5ddcd6d136edc06ea (commit)
from 2f505a51fab34ff6d7ed299815472d7c04f3d2dd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2390eba169637fd18c6682a5ddcd6d136edc06ea
Author: James Fournie <jfournie at vcc.ca>
Date: Thu Jan 17 13:23:12 2019 -0800
LP1783421 - Make Copy Alerts permission not global
For some reason copy alerts require global permissions. Instead
update the IDL for asset.active_copy_alert and asset.copy_alert to
require {CREATE,VIEW,UPDATE,DELETE}_COPY_ALERT perms only as far as
they are scoped for the circ lib of the copy.
Signed-off-by: James Fournie <jfournie at vcc.ca>
Signed-off-by: Chris Sharp <csharp at georgialibraries.org>
Signed-off-by: John Amundson <jamundson at cwmars.org>
Signed-off-by: Jason Stephenson <jason at sigio.com>
diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml
index c883f47..f8fc0ea 100644
--- a/Open-ILS/examples/fm_IDL.xml
+++ b/Open-ILS/examples/fm_IDL.xml
@@ -7588,10 +7588,18 @@ SELECT usr,
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
<actions>
- <create permission="ADMIN_COPY_ALERT CREATE_COPY_ALERT" global_required="true"/>
- <retrieve permission="ADMIN_COPY_ALERT VIEW_COPY_ALERT" global_required="true"/>
- <update permission="ADMIN_COPY_ALERT UPDATE_COPY_ALERT" global_required="true"/>
- <delete permission="ADMIN_COPY_ALERT DELETE_COPY_ALERT" global_required="true"/>
+ <create permission="ADMIN_COPY_ALERT CREATE_COPY_ALERT">
+ <context link="copy" field="circ_lib"/>
+ </create>
+ <retrieve permission="ADMIN_COPY_ALERT VIEW_COPY_ALERT">
+ <context link="copy" field="circ_lib"/>
+ </retrieve>
+ <update permission="ADMIN_COPY_ALERT UPDATE_COPY_ALERT">
+ <context link="copy" field="circ_lib"/>
+ </update>
+ <delete permission="ADMIN_COPY_ALERT DELETE_COPY_ALERT">
+ <context link="copy" field="circ_lib"/>
+ </delete>
</actions>
</permacrud>
</class>
@@ -7616,10 +7624,18 @@ SELECT usr,
</links>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
<actions>
- <create permission="ADMIN_COPY_ALERT CREATE_COPY_ALERT" global_required="true"/>
- <retrieve permission="ADMIN_COPY_ALERT VIEW_COPY_ALERT" global_required="true"/>
- <update permission="ADMIN_COPY_ALERT UPDATE_COPY_ALERT" global_required="true"/>
- <delete permission="ADMIN_COPY_ALERT DELETE_COPY_ALERT" global_required="true"/>
+ <create permission="ADMIN_COPY_ALERT CREATE_COPY_ALERT">
+ <context link="copy" field="circ_lib"/>
+ </create>
+ <retrieve permission="ADMIN_COPY_ALERT VIEW_COPY_ALERT">
+ <context link="copy" field="circ_lib"/>
+ </retrieve>
+ <update permission="ADMIN_COPY_ALERT UPDATE_COPY_ALERT">
+ <context link="copy" field="circ_lib"/>
+ </update>
+ <delete permission="ADMIN_COPY_ALERT DELETE_COPY_ALERT">
+ <context link="copy" field="circ_lib"/>
+ </delete>
</actions>
</permacrud>
</class>
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/examples/fm_IDL.xml | 32 ++++++++++++++++++++++++--------
1 files changed, 24 insertions(+), 8 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list