Bugzilla – Attachment 7673 Details for
Bug 7001
User Configurable Slips
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
follow-up patch
0001-bug_7001-Superlibrarian-can-edit-copy-everything.patch (text/plain), 1.20 KB, created by
Srdjan Jankovic
on 2012-02-16 02:56:39 UTC
(
hide
)
Description:
follow-up patch
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2012-02-16 02:56:39 UTC
Size:
1.20 KB
patch
obsolete
>From 9ca4027b80fb0cc278455cd0ff8066834bfa5af3 Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Thu, 16 Feb 2012 15:42:25 +1300 >Subject: [PATCH] bug_7001: Superlibrarian can edit/copy everything. > >Important when IndependantBranches is set to Yes. >--- > tools/letter.pl | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/tools/letter.pl b/tools/letter.pl >index 17c0e77..ae47810 100755 >--- a/tools/letter.pl >+++ b/tools/letter.pl >@@ -95,7 +95,7 @@ my $content = $input->param('content'); > my $op = $input->param('op') || ''; > my $dbh = C4::Context->dbh; > >-my ( $template, $borrowernumber, $cookie ) = get_template_and_user( >+my ( $template, $borrowernumber, $cookie, $staffflags ) = get_template_and_user( > { > template_name => 'tools/letter.tmpl', > query => $input, >@@ -106,7 +106,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > } > ); > >-my $my_branch = C4::Context->preference("IndependantBranches") >+my $my_branch = C4::Context->preference("IndependantBranches") && !$staffflags->{'superlibrarian'} > ? C4::Context->userenv()->{'branch'} > : undef; > # we show only the TMPL_VAR names $op >-- >1.6.5 >
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 7001
:
6028
|
6047
|
6357
|
6854
|
6942
|
7042
|
7045
|
7096
|
7099
|
7111
|
7119
|
7129
|
7169
|
7283
|
7340
|
7416
|
7572
|
7673
|
7783
|
7796
|
7804
|
7936
|
8104
|
8169
|
8196