Bugzilla – Attachment 142913 Details for
Bug 32064
Add missing test to template permission calculation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32064: Add test data for all report subpermissions
Bug-32064-Add-test-data-for-all-report-subpermissi.patch (text/plain), 1.66 KB, created by
David Nind
on 2022-11-02 04:41:32 UTC
(
hide
)
Description:
Bug 32064: Add test data for all report subpermissions
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-11-02 04:41:32 UTC
Size:
1.66 KB
patch
obsolete
>From d474b2630b82bc095dbd8615ed148232d8080129 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Wed, 2 Nov 2022 00:44:25 +0000 >Subject: [PATCH] Bug 32064: Add test data for all report subpermissions > >This patch adds test data to prove that all authorizations >for subpermissions are set when only a top level flag is set. > >To test: >0) Apply patch >1) prove ./t/Koha/Auth/Permissions.t > >Signed-off-by: David Nind <david@davidnind.com> >--- > t/Koha/Auth/Permissions.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/Koha/Auth/Permissions.t b/t/Koha/Auth/Permissions.t >index d4ae1575ed..a11c2a8563 100755 >--- a/t/Koha/Auth/Permissions.t >+++ b/t/Koha/Auth/Permissions.t >@@ -42,7 +42,7 @@ subtest 'normal staff user test' => sub { > 'plugins' => 0, > 'problem_reports' => 0, > 'recalls' => 0, >- 'reports' => 0, >+ 'reports' => 1, > 'reserveforothers' => 0, > 'self_check' => 0, > 'serials' => 0, >@@ -58,6 +58,10 @@ subtest 'normal staff user test' => sub { > 'CAN_user_staffaccess' => 1, > 'CAN_user_circulate' => 1, > 'CAN_user_circulate_circulate_remaining_permissions' => 1, >+ 'CAN_user_reports' => 1, >+ 'CAN_user_reports_create_reports' => 1, >+ 'CAN_user_reports_delete_reports' => 1, >+ 'CAN_user_reports_execute_reports' => 1, > }; > is_deeply( $authz, $expected, 'Expected permissions generated for normal staff user' ); > }; >-- >2.30.2
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 32064
:
142904
|
142913
|
142976