Bugzilla – Attachment 50989 Details for
Bug 12528
Enable staff to deny message setting access to patrons on the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12528: redirect to 404 if at least 1 pref is off
Bug-12528-redirect-to-404-if-at-least-1-pref-is-of.patch (text/plain), 1.01 KB, created by
Marc Véron
on 2016-04-29 13:00:32 UTC
(
hide
)
Description:
Bug 12528: redirect to 404 if at least 1 pref is off
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2016-04-29 13:00:32 UTC
Size:
1.01 KB
patch
obsolete
>From 146980c4806da4df3114e770963c232b9bf09845 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 4 Jan 2016 09:23:15 +0000 >Subject: [PATCH] Bug 12528: redirect to 404 if at least 1 pref is off >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Marc Véron <veron@veron.ch> >--- > opac/opac-messaging.pl | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/opac/opac-messaging.pl b/opac/opac-messaging.pl >index 1a07f13..6a97ca6 100755 >--- a/opac/opac-messaging.pl >+++ b/opac/opac-messaging.pl >@@ -35,6 +35,12 @@ use Koha::SMS::Providers; > > my $query = CGI->new(); > >+unless ( C4::Context->preference('EnhancedMessagingPreferencesOPAC') and >+ C4::Context->preference('EnhancedMessagingPreferences') ) { >+ print $query->redirect("/cgi-bin/koha/errors/404.pl"); >+ exit; >+} >+ > my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > { > template_name => 'opac-messaging.tt', >-- >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 12528
:
29505
|
30259
|
30348
|
30349
|
30487
|
31047
|
36511
|
36512
|
36513
|
36818
|
44302
|
44820
|
44826
|
45885
|
45886
|
45962
|
46003
|
46015
|
46082
|
46156
|
46217
|
46218
|
50649
|
50650
|
50651
|
50652
|
50988
|
50989
|
51000
|
51001
|
51002
|
51003
|
51004