Bugzilla – Attachment 86408 Details for
Bug 22483
haspermissions previously supported passing 'undef' for $flagsrequired
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22483: Restore svc/members/search
Bug-22483-Restore-svcmemberssearch.patch (text/plain), 1.00 KB, created by
Martin Renvoize (ashimema)
on 2019-03-09 08:16:13 UTC
(
hide
)
Description:
Bug 22483: Restore svc/members/search
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-03-09 08:16:13 UTC
Size:
1.00 KB
patch
obsolete
>From 21ade339cea468444d1a6b5a52a6260ee31d55b7 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Sat, 9 Mar 2019 08:15:14 +0000 >Subject: [PATCH] Bug 22483: Restore svc/members/search > >This script used to pass 'undef' to haspermission, this patch restores >that behaviour. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > svc/members/search | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/svc/members/search b/svc/members/search >index 13869c4b04..abb57164ce 100755 >--- a/svc/members/search >+++ b/svc/members/search >@@ -91,7 +91,7 @@ if ($has_permission) { > my ( $permission, $subpermission ) = split /\./, $has_permission; > my @patrons_with_permission; > for my $patron ( @{ $results->{patrons} } ) { >- my $perms = haspermission( $patron->{userid}, '*' ); >+ my $perms = haspermission( $patron->{userid}, undef ); > if ( $perms->{superlibrarian} == 1 > or $perms->{$permission} == 1 ) > { >-- >2.20.1
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 22483
:
86379
|
86380
|
86385
|
86386
|
86388
|
86389
|
86390
|
86391
|
86392
|
86393
|
86394
|
86395
|
86407
|
86408
|
86409
|
86410