]> git.evergreen-ils.org Git - Evergreen.git/commit
lp1053026, more granular toolbar editing perms
authorJason Etheridge <jason@esilibrary.com>
Thu, 20 Sep 2012 15:27:43 +0000 (11:27 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 17 Oct 2012 00:51:29 +0000 (20:51 -0400)
commitfe03e6f93e7f47157dc0e549ff2ff382a05dfe28
tree12299fda88d6b98eca1ce08143dcf6d552f662da
parente50d4cef406bee50dbb5ea780a0f06807736e38f
lp1053026, more granular toolbar editing perms

client-side checking only to keep the honest folk out

Adds ADMIN_TOOLBAR_FOR_ORG, ADMIN_TOOLBAR_FOR_USER, and
ADMIN_TOOLBAR_FOR_WORKSTATION to the permission list

Staff needs at least one of these to create a toolbar, and they still need the
original ADMIN_TOOLBAR permission which is used on the server side of things.

For editing an existing toolbar, staff needs the perm corresponding to the
toolbar's ownership type (for example, if the toolbar is associated with a
user, then ADMIN_TOOLBAR_FOR_USER is needed).

For changing the ownership type of a toolbar one is allowed to edit, you
need the corresponding perm for the desired ownership type.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.toolbar_perms.sql [new file with mode: 0644]
Open-ILS/xul/staff_client/server/admin/toolbar.js