mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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:
commit
4fc77eca47
3 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
4
dist/files_sharing-init.js
vendored
4
dist/files_sharing-init.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-init.js.map
vendored
2
dist/files_sharing-init.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue