Merge pull request #46382 from nextcloud/fix/sharing-action

fix(files_sharing): Only enable mixed sharing types if there is at least one sharing type
This commit is contained in:
Ferdinand Thiessen 2024-07-10 01:28:28 +02:00 committed by GitHub
commit 4fc77eca47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View file

@ -106,7 +106,8 @@ export const action = new FileAction({
const node = nodes[0]
const ownerId = node?.attributes?.['owner-id']
const isMixed = Array.isArray(node.attributes?.['share-types'])
const shareTypes = node.attributes?.['share-types']
const isMixed = Array.isArray(shareTypes) && shareTypes.length > 0
// If the node is shared multiple times with
// different share types to the current user

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long