https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22724

--- Comment #4 from Hayley Mapley <hayleymap...@catalyst.net.nz> ---
Created attachment 89482
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=89482&action=edit
Bug 22724: (follow-up) Block writeoffs when user has wrong permissions

This patch is a followup which displays an alert and removes the submit
button when a user who does not have writeoff permissions manages to
make it to the 'Make a payment' tab with a writeoff URL.

Test plan:
1) Login as a staff user with writeoff permissions disabled, ensure you
have sample users, then click
the URL:
http://localhost:8081/cgi-bin/koha/members/paycollect.pl?borrowernumber=21&type=writeoff&amt=4&selected=1&notes=
=> Note that you are able to write off the charge with no warning
2) Apply the patch
3) Repeat step 1
=> Note that an alert displays and the button to confirm the writeoff
has been removed
4) Repeat step 1, this time logging in as a staff user with writeoff
permissions enabled
=> Note that the button displays and you can perform the writeoff

Sponsored-by: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to