Update Reva to include 4013

This commit is contained in:
Michael Barz
2023-06-26 15:14:34 +02:00
parent cd304b4df8
commit e364a290c5
4 changed files with 11 additions and 3 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()
}