Exemplo n.º 1
0
 /**
  * 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');
 }
Exemplo n.º 2
0
 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');
 }
Exemplo n.º 3
0
 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');
 }
Exemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->generateSidebar('channel');
 }