Skip to content

Commit 17be48c

Browse files
authored
Merge pull request #22322 from nextcloud/bugfix/noid/only-copy-share-link-when-not-forced-password
2 parents 67ecdc9 + 1da8901 commit 17be48c

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
@@ -708,7 +708,11 @@ export default {
708708
// Execute the copy link method
709709
// freshly created share component
710710
// ! somehow does not works on firefox !
711-
component.copyLink()
711+
if (update || !this.config.enforcePasswordForPublicLink) {
712+
// Only copy the link when the password was not forced,
713+
// otherwise the user needs to copy/paste the password before finishing the share.
714+
component.copyLink()
715+
}
712716
713717
} catch ({ response }) {
714718
const message = response.data.ocs.meta.message

0 commit comments

Comments
 (0)