mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 01:00:20 -04:00
fix(files_sharing): List of share type during recipient lookup
ShareType lists both names and ids so Object.entries return too much. This was also making useless the following condition adding ShareType.Email Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
3027bb51af
commit
d11f3c4c23
1 changed files with 11 additions and 1 deletions
|
|
@ -168,7 +168,17 @@ export default {
|
|||
lookup = true
|
||||
}
|
||||
|
||||
const shareType = Object.values(ShareType)
|
||||
const shareType = [
|
||||
ShareType.User,
|
||||
ShareType.Group,
|
||||
ShareType.Remote,
|
||||
ShareType.RemoteGroup,
|
||||
ShareType.Team,
|
||||
ShareType.Room,
|
||||
ShareType.Guest,
|
||||
ShareType.Deck,
|
||||
ShareType.ScienceMesh,
|
||||
]
|
||||
|
||||
if (getCapabilities().files_sharing.public.enabled === true) {
|
||||
shareType.push(ShareType.Email)
|
||||
|
|
|
|||
Loading…
Reference in a new issue