Use the show_error function instead of the no-permissions callback

This commit is contained in:
Alex Tselegidis 2021-12-07 10:53:20 +01:00
parent 8528713ea2
commit cd5eff8819
1 changed files with 1 additions and 1 deletions

View File

@ -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;