diff options
author | fenn-cs <fenn25.fn@gmail.com> | 2024-03-25 14:07:41 +0100 |
---|---|---|
committer | fenn-cs <fenn25.fn@gmail.com> | 2024-05-14 09:32:54 +0100 |
commit | d6340ed0f97e065274289c9c3e3e9a3861b414cf (patch) | |
tree | 002fd139de86c7c0ec03d67d1737f5fd772701d2 | |
parent | 7f4035441dc5eab2c463ec0a443218a2130a6cdd (diff) | |
download | nextcloud-server-d6340ed0f97e065274289c9c3e3e9a3861b414cf.tar.gz nextcloud-server-d6340ed0f97e065274289c9c3e3e9a3861b414cf.zip |
refactor(ShareDetails): Prevent undefined errors for `share.permissions`
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
-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 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: '', } |