예제 #1
0
파일: Cat.php 프로젝트: vigm/advancedMD
 /**
  * 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');
 }
예제 #2
0
파일: Layouts.php 프로젝트: vigm/advancedMD
 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');
 }
예제 #3
0
파일: Fields.php 프로젝트: vigm/advancedMD
 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');
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->generateSidebar('channel');
 }