mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-22 11:09:02 -05:00
Merge pull request #6625 from owncloud/webdav-perms
[full-ci] Update Reva to include 4013
This commit is contained in:
Generated
Vendored
+5
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user