]> git.koha-community.org Git - koha.git/commit
Bug 23101: Hide action buttons on contracts if user lacks permission
authorKatrin Fischer <katrin.fischer.83@web.de>
Fri, 12 Jul 2019 12:40:22 +0000 (12:40 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 27 Sep 2019 13:00:49 +0000 (14:00 +0100)
commitd0a06e365b693de6609998b3d649d9ef4d083880
tree720d318451a72c4de2bb3ef991e81009dbb3d247
parent8171c9d05dc3adf0014a727e304f666606f7f751
Bug 23101: Hide action buttons on contracts if user lacks permission

When the user doesn't have superlibrarian, full acq or
contracts_manage permission, don't show buttons for editing
and deleting contracts.

To test:
- Create a vendor with a few contracts
- Create a staff user with
  - superlibrarian = can view edit/delete contracts
  - full acq perms = same
  - without manage_contracts = can view, but action buttons are gone
- Make sure the sorting of the contracts table works in all cases

Signed-off-by: Holly Cooper <hc@interleaf.ie>
Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt