aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
authorfenn-cs <fenn25.fn@gmail.com>2024-03-25 14:07:41 +0100
committerfenn-cs <fenn25.fn@gmail.com>2024-06-12 23:08:07 +0100
commit2b62e1794ceffde053ca0079bc579592888d4b0e (patch)
tree98f5d3ebfb27af47bb9b3e35a572711ffaf65628 /apps/files_sharing/src
parentf7eadd8c7135f49b03c7636a982f187b451730df (diff)
downloadnextcloud-server-2b62e1794ceffde053ca0079bc579592888d4b0e.tar.gz
nextcloud-server-2b62e1794ceffde053ca0079bc579592888d4b0e.zip
refactor(ShareDetails): Prevent undefined errors for `share.permissions`
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/mixins/ShareDetails.js3
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 3884d22dae6..60645ef89c8 100644
--- a/apps/files_sharing/src/mixins/ShareDetails.js
+++ b/apps/files_sharing/src/mixins/ShareDetails.js
@@ -1,4 +1,5 @@
import Share from '../models/Share.js'
+import Config from '../services/ConfigService.js'
export default {
methods: {
@@ -50,7 +51,7 @@ export default {
user: shareRequestObject.shareWith,
share_with_displayname: shareRequestObject.displayName,
subtitle: shareRequestObject.subtitle,
- permissions: shareRequestObject.permissions,
+ permissions: shareRequestObject.permissions ?? new Config().defaultPermissions,
expiration: '',
}