| Summary: | Discharge message appearing incorrectly | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Nick Clemens (kidclamp) <nick> |
| Component: | Circulation | Assignee: | Bugs List <koha-bugs> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | abl, gmcharlt, kyle |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
I don't know how to trigger this, but on a partner's site we are seeing the message "Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge." appear whenever the staff are trying to checkout. I suspect the problem is here: [% IF ( nopermission ) %] <div class="dialog alert">Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge.</div> [% END %] No permission just checks the page params, but 'nopermission' is only set from trying to access discharge.pl with the 'useDischarge' syspref set to 'Don't allow' It appears as if the 'nopermission' is getting incorrect values from somewhere