Bugzilla – Attachment 15940 Details for
Bug 6898
circulation librarians can't run overdues without reports permissions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch (followup)
0002-Bug-6898-circulation-librarians-can-t-run-overdues-w.patch (text/plain), 1.64 KB, created by
Fridolin Somers
on 2013-03-07 16:29:22 UTC
(
hide
)
Description:
Proposed patch (followup)
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2013-03-07 16:29:22 UTC
Size:
1.64 KB
patch
obsolete
>From 87045f7afed218d6a878052a95fc49a54345723e Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Thu, 7 Mar 2013 17:07:07 +0100 >Subject: [PATCH 2/2] Bug 6898 - circulation librarians can't run overdues > without reports permissions followup > >Better update database. >--- > installer/data/mysql/updatedatabase.pl | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 709812d..78e9370 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -6446,7 +6446,19 @@ if ( CheckVersion($DBversion) ) { > > $DBversion = "3.11.00.XXX"; > if ( CheckVersion($DBversion) ) { >- $dbh->do("INSERT INTO permissions ( module_bit, code, description ) VALUES ( '1', 'overdues_report', 'Execute overdue items report' )"); >+ $dbh->do(q{ >+ INSERT INTO permissions ( module_bit, code, description ) >+ VALUES ( '1', 'overdues_report', 'Execute overdue items report' ) >+ }); >+ # add new permission for users with all report permissions and circulation remaining permission >+ my $sth = $dbh->prepare(q{ >+ INSERT INTO user_permissions (borrowernumber, module_bit, code) >+ SELECT user_permissions.borrowernumber, 1, 'overdues_report' >+ FROM user_permissions >+ LEFT JOIN borrowers USING(borrowernumber) >+ WHERE borrowers.flags & (1 << 16) >+ AND user_permissions.code = 'circulate_remaining_permissions' >+ }); > print "Upgrade to $DBversion done ( Add circ permission overdues_report )\n"; > SetVersion($DBversion); > } >-- >1.7.10.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 6898
:
7568
|
8233
|
14680
|
15162
|
15939
|
15940
|
15946
|
15947
|
15948
|
15966
|
15974
|
15975
|
16034
|
16035
|
16207
|
16208
|
18670
|
19434
|
19541