public function __construct() { parent::__construct(); // Does user have permission to access this plugin? if (!session::permission('fields_manage', 'pages')) { view::noAccess(); } view::setCustomParam('section', 'content'); view::setCustomParam('options', config::item('cp_top_nav', 'lists', 'content', 'items', 'content/pages', 'items')); view::setTrail('cp/system/plugins', __('content', 'system_navigation')); view::setTrail('cp/content/pages', __('pages', 'system_navigation')); }
public function __construct() { parent::__construct(); // Does user have permission to access this plugin? if (!session::permission('fields_manage', 'users')) { view::noAccess(); } view::setCustomParam('section', 'users'); view::setCustomParam('options', config::item('cp_top_nav', 'lists', 'users', 'items')); view::setTrail('cp/users', __('users', 'system_navigation')); view::setTrail('cp/users/types', __('users_types', 'system_navigation')); loader::model('users/types', array(), 'users_types_model'); }