Bug 16673 - Discharge message appearing incorrectly
Summary: Discharge message appearing incorrectly
Status: RESOLVED DUPLICATE of bug 16670
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-06 15:01 UTC by Nick Clemens
Modified: 2016-06-06 15:18 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens 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 ***