]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 9 Oct 2019 08:02:11 +0000 (10:02 +0200)
commitd1da1a688d5a4fb1ea78d53b6308aa08ac09cdd0
tree420cc7fba72980578c46fa20dfbc345aee3806f4
parentf8ab33c2fa888683f34443f99a8d7b1d0147d1cf
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>
(cherry picked from commit d0a06e365b693de6609998b3d649d9ef4d083880)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt