Skip to content

Commit b3a32f1

Browse files
authored
Merge pull request #22337 from nextcloud/backport/22322/stable19
[stable19] Only copy the link when updating a share or no password was forced
2 parents cf26716 + 2215cbc commit b3a32f1

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)