lp1053026, more granular toolbar editing perms collab/phasefx/toolbar_perms
authorJason Etheridge <jason@esilibrary.com>
Thu, 20 Sep 2012 15:27:43 +0000 (11:27 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 20 Sep 2012 15:37:29 +0000 (11:37 -0400)
commit4bc9182b00714881e9100ee38af21449ce574952
tree9b52b17456fd6943f1f8207764801cd3494ada0b
parent4a2a2d03991ec30a2a61d71dca690b90ac84a30a
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>
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