Bugzilla – Attachment 162691 Details for
Bug 29509
GET /patrons* routes permissions excessive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29509: Correction to bitwise check
Bug-29509-Correction-to-bitwise-check.patch (text/plain), 1.12 KB, created by
Victor Grousset/tuxayo
on 2024-03-01 19:49:32 UTC
(
hide
)
Description:
Bug 29509: Correction to bitwise check
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-03-01 19:49:32 UTC
Size:
1.12 KB
patch
obsolete
>From 9bd7ad732854027a799567f54f1006bc11673fed Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 29 Feb 2024 10:18:03 +0000 >Subject: [PATCH] Bug 29509: Correction to bitwise check > >I was using it wrong :( > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > installer/data/mysql/atomicupdate/bug_29509.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_29509.pl b/installer/data/mysql/atomicupdate/bug_29509.pl >index 24dd5aab09..e667e5bd5e 100755 >--- a/installer/data/mysql/atomicupdate/bug_29509.pl >+++ b/installer/data/mysql/atomicupdate/bug_29509.pl >@@ -9,7 +9,7 @@ return { > my ( $dbh, $out ) = @$args{qw(dbh out)}; > > # Users to exclude from update, (superlibrarians or borrowers flags) >- my $sth = $dbh->prepare("SELECT borrowernumber FROM borrowers WHERE flags = 1 OR (flags & 4) > 0"); >+ my $sth = $dbh->prepare("SELECT borrowernumber FROM borrowers WHERE flags = 1 OR flags & (1<<4)"); > $sth->execute(); > my @exclusions = map { $_->[0] } @{ $sth->fetchall_arrayref }; > >-- >2.44.0
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 29509
:
161256
|
161268
|
161269
|
161270
|
161271
|
162579
|
162580
|
162690
|
162691
|
164461
|
166280
|
169235
|
169236
|
169237