/** * Checks user authorisation to the action. * * @param string $action * @return bool */ public function authorise($action = 'admin.login') { $action = (array) $action; foreach ($action as $a) { if ($this->user->authorise($a)) { return true; } } return false; }