Summary: | Cashup registers never shows on tools page | ||
---|---|---|---|
Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
Component: | Tools | Assignee: | Martin Renvoize (ashimema) <martin.renvoize> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | aleisha, black23, jonathan.druart, lucas, martin.renvoize |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Small patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
20.11.00, 20.05.03
|
|
Circulation function: | |||
Bug Depends on: | |||
Bug Blocks: | 25764, 26023 | ||
Attachments: |
Bug 26017: Correct permission check on tools page
Bug 26017: Correct permission check on tools page Bug 26017: Correct permission check on tools page Bug 26017: Correct permission check on tools page Bug 26017: (follow-up) Serverside permission check on registers page |
Description
Katrin Fischer
2020-07-18 02:05:43 UTC
Created attachment 107080 [details] [review] Bug 26017: Correct permission check on tools page The 'Cashup registers' link from the tools page retained an previous verions of the permission name. This patch corrects it to use the final name we sebtled on and thus now correctly displays the link when appropriate. Hi, any test plan for this patch? Test plan 1/ Enable cash registers via the 'UseCashRegisters' system preference 2/ Ensure you are logged in as a user who has the cash management cashup permission. 3/ Verify that the 'Cashup registers' option appears on the tools page. Created attachment 107197 [details] [review] Bug 26017: Correct permission check on tools page The 'Cashup registers' link from the tools page retained an previous verions of the permission name. This patch corrects it to use the final name we sebtled on and thus now correctly displays the link when appropriate. Signed-off-by: Michal Denar <black23@gmail.com> Created attachment 107368 [details] [review] Bug 26017: Correct permission check on tools page The 'Cashup registers' link from the tools page retained an previous verions of the permission name. This patch corrects it to use the final name we sebtled on and thus now correctly displays the link when appropriate. Test plan 1/ Enable cash registers via the 'UseCashRegisters' system preference 2/ Ensure you are logged in as a user who has the cash management cashup permission. 3/ Verify that the 'Cashup registers' option appears on the tools page. Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Added the test plan to the commit message. There is no flagsrequired passed to get_template_and_user in pos/registers.pl. That sounds wrong, can you have a look? (In reply to Jonathan Druart from comment #7) > There is no flagsrequired passed to get_template_and_user in > pos/registers.pl. That sounds wrong, can you have a look? See bug 26023. The page should display without a specific cashup permission; bug 26017 adds the proper permissions check to the submission. Created attachment 107765 [details] [review] Bug 26017: Correct permission check on tools page The 'Cashup registers' link from the tools page retained an previous verions of the permission name. This patch corrects it to use the final name we sebtled on and thus now correctly displays the link when appropriate. Test plan 1/ Enable cash registers via the 'UseCashRegisters' system preference 2/ Ensure you are logged in as a user who has the cash management cashup permission. 3/ Verify that the 'Cashup registers' option appears on the tools page. Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Created attachment 107766 [details] [review] Bug 26017: (follow-up) Serverside permission check on registers page This patch adds a serverside permissions check for the display of the registers summary page. On second thoughts.. we can catch the same permissions as we do in the followup bug here.. 's' vs ''. Followup attached. Pushed to master for 20.11, thanks to everybody involved! backported to 20.05.x for 20.05.03 In 19.11.x, this bug exists on the Administration home page instead of in Tools. Probably want to open a new bug report specifically for 19.11.x to fix this. not backporting this one to 19.11.x |