From cd5eff8819876a6970a28eebaf8992eddfab0052 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 7 Dec 2021 10:53:20 +0100 Subject: [PATCH] Use the show_error function instead of the no-permissions callback --- application/controllers/Backend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Backend.php b/application/controllers/Backend.php index 18b98784..8b31e0cf 100755 --- a/application/controllers/Backend.php +++ b/application/controllers/Backend.php @@ -145,7 +145,7 @@ class Backend extends EA_Controller { // User does not have the permission to view the page. if ($redirect) { - redirect('user/no_permissions'); + show_error(lang('no_privileges_message'), 403, lang('no_privileges')); } return FALSE;