/** * Constructor to set permissions */ public function __construct() { parent::__construct(); if (!ee()->cp->allowed_group_any('can_create_categories', 'can_edit_categories', 'can_delete_categories')) { show_error(lang('unauthorized_access')); } $this->generateSidebar('category'); }
public function __construct() { parent::__construct(); if (!ee()->cp->allowed_group('can_edit_channels')) { show_error(lang('unauthorized_access')); } ee()->lang->loadfile('content'); $this->generateSidebar('channel'); }
public function __construct() { parent::__construct(); if (!ee()->cp->allowed_group_any('can_create_channel_fields', 'can_edit_channel_fields', 'can_delete_channel_fields')) { show_error(lang('unauthorized_access')); } $this->generateSidebar('field'); ee()->lang->loadfile('admin'); ee()->lang->loadfile('admin_content'); }
public function __construct() { parent::__construct(); $this->generateSidebar('channel'); }