]> git.koha-community.org Git - koha.git/commit
Bug 20687: (follow-up) Look for invitekey in show_accept and fix error codes
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 4 May 2018 06:10:46 +0000 (08:10 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 23 May 2018 05:28:08 +0000 (07:28 +0200)
commit2fac63ae095572c10a6eb895608f6fa987d4182b
treedfacf6a205832d6f98d3b007f174b6e89bed34cb
parentb7884c7fad193054cfd08b38ab7f38aa627e5448
Bug 20687: (follow-up) Look for invitekey in show_accept and fix error codes

We should check the invitekey in show_accept by passing it along in the
search call.
On the way I fixed some error checking: if the list number is invalid, or
the list is public or you are the owner, or if the key is not found, we
should set the right error code; the template contains those messages.

Test plan:
[1] Share a list and accept a correct invitation with another user.
[2] Try to accept some invalid proposals: wrong key, wrong list.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested invalid key, wrong list, owner, public list, expiry.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 7ecc1257865d47336071412bf65b321090b69ce4)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-shareshelf.pl