LP1929741 Change Op displays failed permission
authorBill Erickson <berickxx@gmail.com>
Thu, 24 Jun 2021 15:29:54 +0000 (11:29 -0400)
committerJane Sandberg <js7389@princeton.edu>
Sun, 2 Oct 2022 15:02:49 +0000 (08:02 -0700)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/eg2/src/app/staff/share/op-change/op-change.component.html

index dd78f6b..9010e4c 100644 (file)
@@ -7,6 +7,14 @@
     </button>
   </div>
   <div class="modal-body">
+
+    <!-- let the user know why the change operator dialog suddenly
+        appeared when a permission failure occurs. -->
+    <div *ngIf="requestToEscalate" class="alert alert-warning mt-2 mb-4" i18n>
+      Permission denied.  Please enter credentials for an account that has
+      the {{requestToEscalate.evt.ilsperm}} permission.
+    </div>
+
     <form class="form-validated">
       <div class="form-group row">
         <label class="col-lg-4 text-right font-weight-bold" for="username" i18n>Username</label>