Bugzilla – Attachment 86707 Details for
Bug 20128
Permission for advanced editor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20128: Problem when checking individual perms where borrower has top level
Bug-20128-Problem-when-checking-individual-perms-w.patch (text/plain), 1.49 KB, created by
Nick Clemens (kidclamp)
on 2019-03-16 13:45:54 UTC
(
hide
)
Description:
Bug 20128: Problem when checking individual perms where borrower has top level
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-03-16 13:45:54 UTC
Size:
1.49 KB
patch
obsolete
>From 279dc8305f93d6c04b2a538f98289ffe956d799b Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 13 Mar 2019 05:23:21 +0000 >Subject: [PATCH] Bug 20128: Problem when checking individual perms where > borrower has top level > >--- > t/db_dependent/Auth/haspermission.t | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > >diff --git a/t/db_dependent/Auth/haspermission.t b/t/db_dependent/Auth/haspermission.t >index 6118ec9..0eb6c3c 100644 >--- a/t/db_dependent/Auth/haspermission.t >+++ b/t/db_dependent/Auth/haspermission.t >@@ -50,6 +50,15 @@ my $borr2 = $builder->build( > }, > } > ); >+my $borr3 = $builder->build( >+ { >+ source => 'Borrower', >+ value => { >+ surname => 'Bor2', >+ flags => 2**13, # top level tools >+ }, >+ } >+); > $builder->build( > { > source => 'UserPermission', >@@ -150,6 +159,16 @@ subtest 'hashref top level AND tests' => sub { > ); > is( ref($r), 'HASH', 'Borrower2 (/tools|upload_local_cover_image AND /tools|batch_upload_patron_images) granular' ); > $r = haspermission( >+ $borr3->{userid}, >+ { >+ tools => { >+ 'upload_local_cover_images' => 1, >+ 'batch_upload_patron_images' => 1 >+ }, >+ } >+ ); >+ is( ref($r), 'HASH', 'Borrower3 (/tools|upload_local_cover_image AND /tools|batch_upload_patron_images) granular' ); >+ $r = haspermission( > $borr2->{userid}, > { > tools => { >-- >2.1.4
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 20128
:
83416
|
86198
|
86208
|
86543
|
86706
|
86707
|
86840
|
87738
|
87739
|
87740
|
87741
|
88196
|
88197