Skip to content

Commit 2215cbc

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 165905a commit 2215cbc

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

apps/files_sharing/js/dist/files_sharing_tab.js

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/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
@@ -686,7 +686,11 @@ export default {
686686
// Execute the copy link method
687687
// freshly created share component
688688
// ! somehow does not works on firefox !
689-
component.copyLink()
689+
if (update || !this.config.enforcePasswordForPublicLink) {
690+
// Only copy the link when the password was not forced,
691+
// otherwise the user needs to copy/paste the password before finishing the share.
692+
component.copyLink()
693+
}
690694
691695
} catch ({ response }) {
692696
const message = response.data.ocs.meta.message

0 commit comments

Comments
 (0)