Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     if (!ee()->cp->allowed_group_any('can_edit_other_entries', 'can_edit_self_entries')) {
         show_error(lang('unauthorized_access'));
     }
 }
Ejemplo n.º 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'));
     }
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     if (!ee()->cp->allowed_group('can_create_entries')) {
         show_error(lang('unauthorized_access'));
     }
 }