LP1904036 Patron reg honors claims perms
authorBill Erickson <berickxx@gmail.com>
Wed, 6 Oct 2021 15:36:25 +0000 (11:36 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:38 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.html

index ef3af6b..c89d354 100644 (file)
     {args: {template: fieldCheckbox, field: 'master_account'}}">
   </ng-container>
   <ng-container *ngTemplateOutlet="fieldRow; context: 
-    {args: {template: fieldInput, field: 'claims_returned_count', type: 'number'}}">
+    {args: {template: fieldInput, field: 'claims_returned_count', 
+      type: 'number', disabled: !hasPerm.UPDATE_PATRON_CLAIM_RETURN_COUNT}}">
   </ng-container>
   <ng-container *ngTemplateOutlet="fieldRow; context: 
-    {args: {template: fieldInput, field: 'claims_never_checked_out_count', type: 'number'}}">
+    {args: {template: fieldInput, field: 'claims_never_checked_out_count', 
+      type: 'number', disabled: !hasPerm.UPDATE_PATRON_CLAIM_NEVER_CHECKED_OUT_COUNT}}">
   </ng-container>
 
   <div class="alert alert-success pt-2 pb-2 mt-3 mb-3 d-flex">