mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
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