public function canView($member = null) { if (get_class($this) == "ShopPeriodReport") { return false; } return parent::canView($member); }