Bug 14529: Allow user to delete lists
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 13 Jul 2015 16:53:06 +0000 (17:53 +0100)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Tue, 18 Aug 2015 16:18:21 +0000 (13:18 -0300)
commit3ec6c88ae10868fcab17b5b29c3b84f159323e25
tree173b5a5d5eb3067d3be68dffe2585de9c7bff739
parent4a738888adfaca7ab5935c320e14a12309797334
Bug 14529: Allow user to delete lists

Bug 13417 allows a librarian to delete any lists if he has the
permission (delete_public_lists).

There is a mismatch in the perm check.
A user can delete a list with the ability to edit (manage) it.

Test plan:
1/ Create a list A with user A
2/ Create a list B with user B
3/ A should be able to manage and delete the list A.
He cans delete B only if he is superlibrarian or has the
delete_public_lists permission.

Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt