Skip to content

Commit 7fa81cb

Browse files
nickvergessennpmbuildbot[bot]
authored andcommitted
Only copy the link when updating a share or no password was forced
Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
1 parent 20aa616 commit 7fa81cb

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

apps/files_sharing/js/dist/files_sharing_tab.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files_sharing/js/dist/files_sharing_tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/files_sharing/src/components/SharingEntryLink.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,11 @@ export default {
681681
// Execute the copy link method
682682
// freshly created share component
683683
// ! somehow does not works on firefox !
684-
component.copyLink()
684+
if (update || !this.config.enforcePasswordForPublicLink) {
685+
// Only copy the link when the password was not forced,
686+
// otherwise the user needs to copy/paste the password before finishing the share.
687+
component.copyLink()
688+
}
685689
686690
} catch ({ response }) {
687691
const message = response.data.ocs.meta.message

0 commit comments

Comments
 (0)