feat(Sharing): Add hint for enforced password protection

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/62599/head
provokateurin 3 weeks ago
parent a74991bd2d
commit 5bbf52e211
No known key found for this signature in database
  1. 4
      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;
}

Loading…
Cancel
Save