diff --git a/lib/private/Sharing/SharingRegistry.php b/lib/private/Sharing/SharingRegistry.php index 3ee949fb1ddfa..333beb3b2b2f6 100644 --- a/lib/private/Sharing/SharingRegistry.php +++ b/lib/private/Sharing/SharingRegistry.php @@ -175,10 +175,6 @@ public function getPropertyTypeCompatibleRecipientTypes(): array { public function registerPropertyType(ISharePropertyType $propertyType): void { $class = $propertyType::class; - if ($propertyType->isRequired() && $propertyType->getDefaultValue() === null) { - throw new RuntimeException('Share property type ' . $class . ' is required, but has no default value.'); - } - if (isset($this->propertyTypes[$class])) { throw new RuntimeException('Share property type ' . $class . ' is already registered'); }