/** * (non-PHPdoc) * @see BPCPageAbstract::onLoad() */ public function onLoad($param) { parent::onLoad($param); if (!AccessControl::canAccessPriceMatchPage(Core::getRole())) { die(BPCPageAbstract::show404Page('Access Denied', 'You do NOT have the access to this page!')); } }
/** * constructor */ public function __construct() { if (!AccessControl::canAccessUsersPage(Core::getRole())) { die(BPCPageAbstract::show404Page('Access Denied', 'You have no access to this page!')); } parent::__construct(); }