示例#1
0
文件: Edit.php 项目: vigm/advancedMD
 public function __construct()
 {
     parent::__construct();
     if (!ee()->cp->allowed_group_any('can_edit_other_entries', 'can_edit_self_entries')) {
         show_error(lang('unauthorized_access'));
     }
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     if (!ee()->cp->allowed_group_any('can_moderate_comments', 'can_edit_own_comments', 'can_delete_own_comments', 'can_edit_all_comments', 'can_delete_all_comments')) {
         show_error(lang('unauthorized_access'));
     }
 }
示例#3
0
 public function __construct()
 {
     parent::__construct();
     if (!ee()->cp->allowed_group('can_create_entries')) {
         show_error(lang('unauthorized_access'));
     }
 }