Skip to content

Commit 5bbf52e

Browse files
committed
feat(Sharing): Add hint for enforced password protection
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent a74991b commit 5bbf52e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/Sharing/Property/PasswordSharePropertyType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public function getDisplayName(IFactory $l10nFactory): string {
4242

4343
#[\Override]
4444
public function getHint(IFactory $l10nFactory, Share $share): ?string {
45+
if ($this->isRequired($share)) {
46+
return $l10nFactory->get(Application::APP_ID)->t('Your administrator has enforced a password protection.');
47+
}
48+
4549
return null;
4650
}
4751

0 commit comments

Comments
 (0)