]> git.koha-community.org Git - koha.git/commit
Bug 38297: Add a permissions check to the New vendor button
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Wed, 30 Oct 2024 11:46:05 +0000 (11:46 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 18 Dec 2024 09:38:12 +0000 (10:38 +0100)
commit42ff59d691ff6d8d9d4b425dd3e4c7df222eb6e7
treeb6bf050f915bf777203294270ad909bd88dc5c4b
parentdb54be494ff5046f90b8e3c62b48c3ace8eddbce
Bug 38297: Add a permissions check to the New vendor button

Test plan:
1) Choose a staff patron and make sure they have permissions to log
   into the staff interface
2) Ensure that the patron does not have the vendors_manage permission
   but give them one other acquisitions permission so that they can see
   the link on the homepage (e.g. budget_manage)
3) In an incognito browser, log in with that patron and go to the
   acquisitions homepage
4) The New vendor button will be visible
5) Click on it and fill in the required fields. Submit the form and it
   will error for lack of permissions
6) Apply patch
7) Return to the acquisitions page and the New vendor button should no
   longer be visible
8) Back in your main browser, give the patron the vendors_manage
   permission and then refresh the incognito window - the button should
   be visible

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit b11b2b213e611ba759a79f58940d6d8fb8581e71)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 345d1b943ad09867ef5e32da9710dc4debfb6030)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc