lp1053026, more granular toolbar editing perms
authorJason Etheridge <jason@esilibrary.com>
Thu, 20 Sep 2012 15:27:43 +0000 (11:27 -0400)
committerKathy Lussier <klussier@masslnc.org>
Thu, 11 Oct 2012 01:56:20 +0000 (21:56 -0400)
commit047290f2e8a0297a73e0d8835abb9220c13551eb
treeb74d911a031ca59c6e42b5681977edeb515b0f30
parentf64b4a4aca8884e46e1e60c7a4a38fd7e9157952
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