Bugzilla – Attachment 171619 Details for
Bug 37737
Users with 'execute_reports' permission can create reports 23.11 and lower
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37737: [23.11] Fixed report permissions to prevent disallowed duplication
Bug-37737-2311-Fixed-report-permissions-to-prevent.patch (text/plain), 1.61 KB, created by
Nick Clemens (kidclamp)
on 2024-09-17 12:38:54 UTC
(
hide
)
Description:
Bug 37737: [23.11] Fixed report permissions to prevent disallowed duplication
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-09-17 12:38:54 UTC
Size:
1.61 KB
patch
obsolete
>From abe3c44d077080bbcf07729c0c8da66f33cb32e9 Mon Sep 17 00:00:00 2001 >From: Lisette Scheer <lisette@bywatersolutions.com> >Date: Mon, 9 Sep 2024 20:12:47 +0000 >Subject: [PATCH] Bug 37737: [23.11] Fixed report permissions to prevent > disallowed duplication > >Test plan: >1. Checkout 23.11 >2. Create a report >3. Create a user with staff login and run reports permissions >4. Log in as your new user >5. Preview the SQL of the report >6. In the preview modal, select Duplicate report >7. Apply patch >8. Repeat steps 4-6. >9. You should be prompted to login. > >Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > reports/guided_reports.pl | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl >index b8a99c0c8bd..fad56709446 100755 >--- a/reports/guided_reports.pl >+++ b/reports/guided_reports.pl >@@ -57,7 +57,7 @@ my $usecache = Koha::Caches->get_instance->memcached_cache; > my $phase = $input->param('phase') // ''; > my $flagsrequired; > if ( ( $phase eq 'Build new' ) || ( $phase eq 'Create report from SQL' ) || ( $phase eq 'Edit SQL' ) >- || ( $phase eq 'Build new from existing' ) ) { >+ || ( $phase eq 'Build new from existing' ) || ( $phase eq 'Create report from existing' ) ) { > $flagsrequired = 'create_reports'; > } > elsif ( $phase eq 'Use saved' ) { >@@ -66,6 +66,9 @@ elsif ( $phase eq 'Use saved' ) { > elsif ( $phase eq 'Delete Saved' ) { > $flagsrequired = 'delete_reports'; > } >+elsif ( $phase eq 'Run this Report') { >+ $flagsrequired = 'execute_reports'; >+} > else { > $flagsrequired = '*'; > } >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37737
:
170891
|
171232
|
171418
| 171619