Bug 12528: redirect to 404 if at least 1 pref is off
Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
e71dd6fdc2
commit
a9274186b9
1 changed files with 6 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue