distribution formulas: link OU and item location selectors to correct permission
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 20 Apr 2021 21:02:36 +0000 (17:02 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 20 Apr 2021 21:02:36 +0000 (17:02 -0400)
LH#41 and LH#42

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/admin/acq/distribution_formula/distribution-formula-edit-dialog.component.html

index 71a8cd4..13238c6 100644 (file)
@@ -27,6 +27,7 @@
             i18n-placeholder
             domId="formula-owner"
             [applyOrgId]="formula.owner()"
+            [limitPerms]="['ADMIN_ACQ_DISTRIB_FORMULA']"
             (onChange)="formula.owner($event); myForm.form.markAsDirty()">
           </eg-org-select>
         </div>
             i18n-placeholder
             domId="entry-owning-lib-{{idx}}"
             [applyOrgId]="entry.owning_lib()"
+            [limitPerms]="['ADMIN_ACQ_DISTRIB_FORMULA']"
             (onChange)="entry.owning_lib($event); myForm.form.markAsDirty()">
           </eg-org-select>
         </div>
         <div class="col-sm-2">
           <eg-item-location-select
-            permFilter="CREATE_PURCHASE_ORDER"
+            permFilter="ADMIN_ACQ_DISTRIB_FORMULA"
             [ngModel]="entry.location()" name="location-{{idx}}"
             (ngModelChange)="entry.location($event)"
             (valueChange)="myForm.form.markAsDirty()">