LP1904036 Patron reg honors claims perms
authorBill Erickson <berickxx@gmail.com>
Wed, 6 Oct 2021 15:36:25 +0000 (11:36 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 6 Oct 2022 17:05:39 +0000 (13:05 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
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">