Merge pull request #6625 from owncloud/webdav-perms

[full-ci] Update Reva to include 4013
This commit is contained in:
Michael Barz
2023-06-29 14:19:57 +02:00
committed by GitHub
6 changed files with 14 additions and 6 deletions
@@ -98,6 +98,7 @@ func (r *Role) OCSPermissions() Permissions {
// R = Shareable
// M = Mounted
// Z = Deniable (NEW)
// P = Purge from trashbin
func (r *Role) WebDAVPermissions(isDir, isShared, isMountpoint, isPublic bool) string {
var b strings.Builder
if !isPublic && isShared {
@@ -129,6 +130,10 @@ func (r *Role) WebDAVPermissions(isDir, isShared, isMountpoint, isPublic bool) s
fmt.Fprintf(&b, "Z")
}
if r.CS3ResourcePermissions().PurgeRecycle {
fmt.Fprintf(&b, "P")
}
return b.String()
}