]> git.koha-community.org Git - koha.git/commit
Bug 13417: Limit the permission to delete
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 17 Dec 2014 15:27:11 +0000 (16:27 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 13 Feb 2015 16:52:17 +0000 (13:52 -0300)
commit70586324c596a608da615de3fa4fb093348c73a7
tree257cba267729d566dcfe030ad7cad3e37d36082d
parent9c65bd8124ad21a96672c76b0ef1e31f80d7f4f3
Bug 13417: Limit the permission to delete

It's preferable to limit the permission to delete shelves.

Apply both patches before testing, then follow this test plan

Currently a public list can only be deleted by its owner.
This means lists can exist infinitely.
This will introduce a new permission for list. With this permission, a
staff member will be allow to delete any public lists.

Test plan:
1/ Add the manage_shelves permission to a patron.
2/ Login with this patron
3/ Go on the public list view
4/ You should be able to delete all public lists

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/VirtualShelves.pm
C4/VirtualShelves/Page.pm
installer/data/mysql/en/mandatory/userpermissions.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt