/** * Custom access check to be called by parent class. Returns the value of * config key "account.editOwnAccount" if set; false otherwise. * * @return boolean */ protected function customAccessCheck() { $parentValue = parent::customAccessCheck(); $config = $this->getConfig(); if (!isset($config) or !isset($config->account->editOwnAccount)) { return false; } return $parentValue and $config->account->editOwnAccount; }