diff --git a/core/Sharing/Property/PasswordSharePropertyType.php b/core/Sharing/Property/PasswordSharePropertyType.php index b827c204c31..190d4cde6e2 100644 --- a/core/Sharing/Property/PasswordSharePropertyType.php +++ b/core/Sharing/Property/PasswordSharePropertyType.php @@ -42,6 +42,10 @@ final class PasswordSharePropertyType extends APasswordSharePropertyType impleme #[\Override] public function getHint(IFactory $l10nFactory, Share $share): ?string { + if ($this->isRequired($share)) { + return $l10nFactory->get(Application::APP_ID)->t('Your administrator has enforced a password protection.'); + } + return null; }