Moved the about controller and renamed the view file

This commit is contained in:
Alex Tselegidis 2021-12-07 11:00:13 +01:00
parent 523db7e5e3
commit 622a4e9390
2 changed files with 3 additions and 3 deletions

View file

@ -57,9 +57,9 @@ class About extends EA_Controller {
*/
public function index()
{
session(['dest_url' => site_url('services')]);
session(['dest_url' => site_url('about')]);
if (cannot('view', 'services'))
if (cannot('view', 'user_settings'))
{
show_error('Forbidden', 403);
}
@ -68,7 +68,7 @@ class About extends EA_Controller {
$role_slug = session('role_slug');
$this->load->view('pages/settings/about_page', [
$this->load->view('pages/about', [
'page_title' => lang('settings'),
'active_menu' => PRIV_SYSTEM_SETTINGS,
'user_display_name' => $this->accounts->get_user_display_name($user_id),