예제 #1
0
 protected function _beforeFilter()
 {
     // User
     // --------------------------------------------------
     $this->LoggedIn = AppUser::GetCurrent();
     // is Admin?
     // --------------------------------------------------
     if (Url::GetData('is_admin')) {
         $this->layout = 'admin';
         $this->_set_filter();
     }
     // ACL
     // --------------------------------------------------
     $admin_actions = array('admin_dashboard', 'admin_index', 'admin_add', 'admin_edit', 'admin_show', 'admin_remove');
     $this->deny($admin_actions);
     $this->allow($admin_actions, 'Admin');
 }