public function __construct($login = true) { parent::__construct(true); if (UserSession::get('user.type') !== 'admin') { $this->_403(); } }
public function __construct() { parent::__construct(false); }