We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48ebc75 + 547e121 commit 3200abdCopy full SHA for 3200abd
2 files changed
lib/private/Share20/Manager.php
@@ -644,6 +644,7 @@ public function createShare(\OCP\Share\IShare $share) {
644
'shareWith' => $share->getSharedWith(),
645
'itemTarget' => $share->getTarget(),
646
'fileTarget' => $share->getTarget(),
647
+ 'passwordEnabled' => (!is_null($share->getPassword()) and ($share->getPassword() !== '')),
648
];
649
650
\OC_Hook::emit('OCP\Share', 'post_shared', $postHookData);
tests/lib/Share20/ManagerTest.php
@@ -1785,6 +1785,7 @@ public function testCreateShareLink() {
1785
'itemTarget' => '/target',
1786
'fileTarget' => '/target',
1787
'shareWith' => null,
1788
+ 'passwordEnabled' => true,
1789
1790
1791
$hookListner->expects($this->once())
0 commit comments