/** * Constructor */ function __construct() { parent::__construct(); if (!ee()->cp->allowed_group('can_admin_mbr_groups')) { show_error(lang('unauthorized_access')); } ee()->lang->loadfile('channel'); $this->base_url = ee('CP/URL')->make('members/fields'); $this->generateSidebar('fields'); }
/** * Constructor */ function __construct() { parent::__construct(); if (!ee()->cp->allowed_group('can_admin_mbr_groups')) { show_error(lang('unauthorized_access')); } $this->base_url = ee('CP/URL')->make('members/groups'); $this->site_id = (int) ee()->config->item('site_id'); $this->super_admin = $this->session->userdata('group_id') == 1; $this->set_view_header($this->base_url, lang('search_member_groups_button')); $this->generateSidebar('groups'); }