rootLevelType; } public function shallIgnoreRootLevelRestriction(): bool { return $this->ignoreRootLevelRestriction; } public function canExistOnRootLevel(): bool { return $this->rootLevelType === self::TYPE_BOTH || $this->rootLevelType === self::TYPE_ONLY_ON_ROOTLEVEL; } public function canExistOnPages(): bool { return $this->rootLevelType === self::TYPE_BOTH || $this->rootLevelType === self::TYPE_ONLY_ON_PAGES; } /** * Allows non-admin users to access records that on the root-level (page-id 0), thus bypassing this usual restriction. */ public function canAccessRecordsOnRootLevel(): bool { return !$this->rootLevelType || $this->ignoreRootLevelRestriction; } }