selfcheck checkin perm
authorBill Erickson <berick@esilibrary.com>
Mon, 4 Feb 2013 16:24:03 +0000 (11:24 -0500)
committerBill Erickson <berick@esilibrary.com>
Mon, 4 Feb 2013 16:24:03 +0000 (11:24 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.selfcheck-staff-mode.sql [new file with mode: 0644]
Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js

index 8805181..a7c7cc2 100644 (file)
@@ -1573,7 +1573,9 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES
  ( 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')),
 ;
 
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.selfcheck-staff-mode.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.selfcheck-staff-mode.sql
new file mode 100644 (file)
index 0000000..c73ba20
--- /dev/null
@@ -0,0 +1,17 @@
+
+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;
index 5142a03..e0aa9b1 100644 (file)
@@ -123,7 +123,7 @@ SelfCheckManager.prototype.init = function() {
     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() }
     );