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