Bug 6885 Allow superlib to delete items from any library
authorFrédéric Demians <f.demians@tamil.fr>
Mon, 19 Sep 2011 17:53:38 +0000 (19:53 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 13 Oct 2011 02:52:20 +0000 (15:52 +1300)
commitb64dbb246c8f29ac1c5e40b88a1f26f8d207b18d
tree828167271dcbf9427dddfad4f0a2ec5aa5a5a380
parenta4baa4df1843f1390f372d1569eb446171705742
Bug 6885 Allow superlib to delete items from any library

When IndependantBranches syspref is enabled, a 'regular' user can only
delete items belonging to his/her library. But a superlibrarian should
have the permission to delete items from all libraries. He can't for the
time being. This is fix by this patch.

How to test?

- On a multi-libraries Koha, activate IndependantBranches
- Log in with a superlibrarian user
- Find a biblio with one item from another library than the user home
  library
- Click on Edit > Edit Items
- On the list of items, all lines have Delete link
- If you try to delete an item from another library than the user home
  library, deletion will fail.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Items.pm