示例#1
0
 function preFilter()
 {
     parent::preFilter();
     if (!$this->isAdmin) {
         $this->session->set('error', _('You need to be an admin to manage files.'));
         $this->request->redirectArgList('/');
     }
 }