Skip to content

Commit

Permalink
Merge pull request #43136 from nextcloud/jr/fix/trashbin-parse-files-api
Browse files Browse the repository at this point in the history
[stable27 ONLY] fix(trashbin) Switch parseWebdavPermissions->davParsePermissions
  • Loading branch information
susnux authored Jan 26, 2024
2 parents af28d04 + b76f446 commit c7cf447
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/files_trashbin/src/services/trashbin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
/* eslint-disable */
import { getCurrentUser } from '@nextcloud/auth'
import { File, Folder, parseWebdavPermissions } from '@nextcloud/files'
import { File, Folder, davParsePermissions } from '@nextcloud/files'
import { generateRemoteUrl, generateUrl } from '@nextcloud/router'

import type { FileStat, ResponseDataDetailed } from 'webdav'
Expand Down Expand Up @@ -52,7 +52,7 @@ const data = `<?xml version="1.0"?>


const resultToNode = function(node: FileStat): File | Folder {
const permissions = parseWebdavPermissions(node.props?.permissions)
const permissions = davParsePermissions(node.props?.permissions)
const owner = getCurrentUser()?.uid as string
const previewUrl = generateUrl('/apps/files_trashbin/preview?fileId={fileid}&x=32&y=32', node.props)

Expand Down
4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-common.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit c7cf447

Please sign in to comment.