( 541, 'ADMIN_TOOLBAR_FOR_WORKSTATION', oils_i18n_gettext( 541,
'Allows a user to create, edit, and delete custom toolbars for workstations', 'ppl', 'description')),
( 542, 'ADMIN_TOOLBAR_FOR_USER', oils_i18n_gettext( 542,
- 'Allows a user to create, edit, and delete custom toolbars for users', 'ppl', 'description'))
+ 'Allows a user to create, edit, and delete custom toolbars for users', 'ppl', 'description')),
+ ( 543, 'SELFCHECK_STAFF_MODE', oils_i18n_gettext( 543,
+ 'Activates staff mode for the selcheck UI for users that have this permission', 'ppl', 'description')),
;
--- /dev/null
+
+BEGIN;
+
+-- TODO version
+
+INSERT INTO permission.perm_list ( id, code, description ) VALUES (
+ 543, -- verify
+ 'SELFCHECK_STAFF_MODE',
+ oils_i18n_gettext(
+ 543, -- verify
+ 'Activates staff mode for the selcheck UI for users that have this permission',
+ 'ppl',
+ 'description'
+ )
+);
+
+COMMIT;
this.loadOrgSettings();
// are we in staff mode?
- new openils.User().getPermOrgList(['SELFCHECK_FULL_THROTTLE'],
+ new openils.User().getPermOrgList(['SELFCHECK_STAFF_MODE'],
function(orglist) { if (orglist.length) self.activateStaffMode() }
);