Bugzilla – Attachment 46218 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), 903 bytes, created by
Jonathan Druart
on 2016-01-04 09:27:20 UTC
(
hide
)
Description:
Bug 12528: redirect to 404 if at least 1 pref is off
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-01-04 09:27:20 UTC
Size:
903 bytes
patch
obsolete
>From 2a69c4ee79718d5c35b600eb776e509820af8d3c 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 > >--- > opac/opac-messaging.pl | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/opac/opac-messaging.pl b/opac/opac-messaging.pl >index 8ccc500..eaed63f 100755 >--- a/opac/opac-messaging.pl >+++ b/opac/opac-messaging.pl >@@ -34,6 +34,12 @@ use C4::Form::MessagingPreferences; > > 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', >-- >2.1.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 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