<div class="col-lg-4 mb-2">
<div class="input-group">
<div class="input-group-text" i18n>View Pull List For:</div>
- <eg-org-select [initialOrgId]="pullListOrg"
+ <eg-org-select [initialOrgId]="pullListOrg" [limitPerms]="['VIEW_HOLD_PULL_LIST']"
(onChange)="pullListOrgChanged($event)">
</eg-org-select>
</div>
( 641, 'ADMIN_FUND_ROLLOVER', oils_i18n_gettext(641,
'Allow the user to perform fund propagation and rollover', 'ppl', 'description')),
( 642, 'UPDATE_COPY_BARCODE', oils_i18n_gettext(642,
- 'Update the barcode for an item.', 'ppl', 'description'))
+ 'Update the barcode for an item.', 'ppl', 'description')),
+ ( 643, 'VIEW_HOLD_PULL_LIST', oils_i18n_gettext(643,
+ 'View hold pull list', 'ppl', 'description'))
;
SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000);
'VIEW_CIRCULATIONS',
'VIEW_COPY_NOTES',
'VIEW_HOLD',
+ 'VIEW_HOLD_PULL_LIST',
'VIEW_ORG_SETTINGS',
'VIEW_TITLE_NOTES',
'VIEW_TRANSACTION',
'VIEW_HOLD',
'VIEW_HOLD_NOTIFICATION',
'VIEW_HOLD_PERMIT',
+ 'VIEW_HOLD_PULL_LIST',
'VIEW_PERM_GROUPS',
'VIEW_PERMISSION',
'VIEW_TITLE_NOTES',
'VIEW_CIRCS',
'VIEW_COPY_CHECKOUT',
'VIEW_HOLD',
+ 'VIEW_HOLD_PULL_LIST',
'VIEW_TITLE_HOLDS',
'VIEW_TRANSACTION',
'VIEW_USER',
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT INTO permission.perm_list (id, code, description) VALUES
+ ( 643, 'VIEW_HOLD_PULL_LIST', oils_i18n_gettext(643,
+ 'View hold pull list', 'ppl', 'description'));
+
+-- by default, assign VIEW_HOLD_PULL_LIST to everyone who has VIEW_HOLDS
+INSERT INTO permission.grp_perm_map (perm, grp, depth, grantable)
+ SELECT 643, grp, depth, grantable
+ FROM permission.grp_perm_map
+ WHERE perm = 9;
+
+INSERT INTO permission.usr_perm_map (perm, usr, depth, grantable)
+ SELECT 643, usr, depth, grantable
+ FROM permission.usr_perm_map
+ WHERE perm = 9;
+
+COMMIT;
+
--- /dev/null
+== New Permission for Viewing Holds Pull List ==
+
+Access to the holds pull list is now restricted to users with the
+VIEW_HOLD_PULL_LIST permission. By default, this new permission is granted to
+all users with the VIEW_HOLDS permission.
+