LP#1929749: tweak ordering agency selector
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 13 Jan 2022 21:08:48 +0000 (16:08 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 13 Jan 2022 21:08:48 +0000 (16:08 -0500)
Restrict the OUs to the ones that the user has
permissions to either create POs or SLs at.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/picklist/upload.component.html

index c597f6f..8a805eb 100644 (file)
@@ -73,8 +73,9 @@
     </div>
       <div class="col-lg-3">
         <eg-org-select
-        [applyOrgId]="orderingAgency"
-        (onChange)="orgOnChange($event)">
+          [applyOrgId]="orderingAgency"
+          (onChange)="orgOnChange($event)"
+          [limitPerms]="['CREATE_PICKLIST','CREATE_PURCHASE_ORDER']">
         </eg-org-select>
       </div>