]> git.koha-community.org Git - koha.git/commit
Bug 20367: Avoid resetting userid when BorrowerUnwantedField contains userid
authorLari Taskula <lari.taskula@jns.fi>
Fri, 9 Mar 2018 13:49:27 +0000 (15:49 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 27 Mar 2018 11:46:10 +0000 (13:46 +0200)
commit900c11e25a6038990bc0c3102b74b8599659cead
tree8c5e53e90e11c32b607ffff2f58630422cfc1e5d
parentfa20c7a4f562bd3ff3952276f62c6b5e4e7f85c4
Bug 20367: Avoid resetting userid when BorrowerUnwantedField contains userid

To test:
1. In staff client, set your username to firstname
2. Add userid to BorrowerUnwantedField system preference
3. Go to your patron modification screen (memberentry.pl) and click Save
4. Observe you get kicked out into login screen, saying:
Error: You do not have permission to access this page.
Log in as a different user

5. Apply patch and restart plack

6. Set your username back to firstname
7. Repeat step 3
8. Observe you were not kicked out and your userid stays the same

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 7e44bb803fa085abdbded2311325f0c442b17708)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
members/memberentry.pl