diff options
author | fenn-cs <fenn25.fn@gmail.com> | 2024-03-25 14:07:41 +0100 |
---|---|---|
committer | fenn-cs <fenn25.fn@gmail.com> | 2024-06-12 22:02:02 +0100 |
commit | 2863ad58bbbd336976db0f21acad1d199f13ceaf (patch) | |
tree | 82fa24550914b5c8e06a845a6795513e9401aadb /apps/files_sharing | |
parent | b3e4270135d5de64b2b4d43b3d08f00c91b7beab (diff) | |
download | nextcloud-server-2863ad58bbbd336976db0f21acad1d199f13ceaf.tar.gz nextcloud-server-2863ad58bbbd336976db0f21acad1d199f13ceaf.zip |
refactor(ShareDetails): Prevent undefined errors for `share.permissions`
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/src/mixins/ShareDetails.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/src/mixins/ShareDetails.js b/apps/files_sharing/src/mixins/ShareDetails.js index 5490506622d..6c50440ff24 100644 --- a/apps/files_sharing/src/mixins/ShareDetails.js +++ b/apps/files_sharing/src/mixins/ShareDetails.js @@ -5,6 +5,7 @@ import Share from '../models/Share.js' +import Config from '../services/ConfigService.js' export default { methods: { @@ -56,7 +57,7 @@ export default { user: shareRequestObject.shareWith, share_with_displayname: shareRequestObject.displayName, subtitle: shareRequestObject.subtitle, - permissions: shareRequestObject.permissions, + permissions: shareRequestObject.permissions ?? new Config().defaultPermissions, expiration: '', } |