When parsing the permissions we only provide the Nextcloud storage permissions:
- readable
- updatable
- deletable
- createable
- shareable
But DAV also has writeable as a separate permission for files because updatable as in the NV DAV permission just means the node can be moved or renamed (metadata update) but it does not mean the content is updatable.
So we should maybe add a dedicated writable to the permissions or add a new flag for it on the node.
Ref for permission string: https://github.com/nextcloud/server/blob/dae7c159f728a90ffa53247d6e033abdae5d2bd6/lib/public/Files/DavUtil.php#L36
Here we have:
NV -> The file or folder can be renamed (moved)
G -> The file or folder can be read
R -> The file or folder can be shared
D -> The file or folder can be deleted
W -> File only the file can be updated (write)
CK -> Folder only new children can be created
When parsing the permissions we only provide the Nextcloud storage permissions:
But DAV also has
writeableas a separate permission for files becauseupdatableas in theNVDAV permission just means the node can be moved or renamed (metadata update) but it does not mean the content is updatable.So we should maybe add a dedicated writable to the permissions or add a new flag for it on the node.
Ref for permission string: https://github.com/nextcloud/server/blob/dae7c159f728a90ffa53247d6e033abdae5d2bd6/lib/public/Files/DavUtil.php#L36
Here we have:
NV-> The file or folder can be renamed (moved)G-> The file or folder can be readR-> The file or folder can be sharedD-> The file or folder can be deletedW-> File only the file can be updated (write)CK-> Folder only new children can be created