Beispiel #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');
 }
Beispiel #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');
 }
Beispiel #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');
 }
Beispiel #4
0
 public function __construct()
 {
     parent::__construct();
     $this->generateSidebar('channel');
 }