forked from mirrors/easyappointments
Use the show_error function instead of the no-permissions callback
This commit is contained in:
parent
8528713ea2
commit
cd5eff8819
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue