model = new CrudLog; if (!$this->auth->check('crud/crud/index')) { $this->error(__('You have no permission'), [], 401); } } }