Bug 16673

Summary: Discharge message appearing incorrectly
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: abl, gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Nick Clemens (kidclamp) 2016-06-06 15:01:59 UTC
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
Comment 1 Jacek Ablewicz 2016-06-06 15:18:41 UTC

*** This bug has been marked as a duplicate of bug 16670 ***