From: Bill Erickson <berickxx@gmail.com>
Date: Wed, 6 Oct 2021 15:36:25 +0000 (-0400)
Subject: LP1904036 Patron reg honors claims perms
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a0c539f842ba1dafb5a1f8c054b32bc72e111dca;p=evergreen%2Ftadl.git

LP1904036 Patron reg honors claims perms

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
---

diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.html
index ef3af6bee9..c89d354642 100644
--- a/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.html
@@ -467,10 +467,12 @@
     {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">