expose server version via PROPFIND on root collection and display in the UI for authenticated users

This commit is contained in:
Max Berger
2026-04-29 23:13:36 +02:00
parent 98d9257b84
commit cdf9e62e0b
7 changed files with 68 additions and 4 deletions

View File

@@ -123,8 +123,9 @@ export class Collection {
* @param {number} size
* @param {string} source
* @param {Array<string>} permissions
* @param {string} version
*/
constructor(href, type, displayname, description, color, contentcount, size, source, permissions) {
constructor(href, type, displayname, description, color, contentcount, size, source, permissions, version = "") {
this.href = href;
this.type = type;
this.displayname = displayname;
@@ -134,6 +135,7 @@ export class Collection {
this.contentcount = contentcount;
this.size = size;
this.permissions = permissions;
this.version = version;
}
has_permission(/** @type {string} */ permission) {