[#527] calendar delegation CRUD (#581)

* [#527] added panel to grant right for calendar delegation

* [#527] added rights management to access modal

* [#527] conditionnal rendering of access granting based on rights

* [#527] saves on close except cancel

* [#527] added tests
This commit is contained in:
Camille Moussu
2026-03-02 09:34:45 +01:00
committed by GitHub
parent 1af571d98e
commit 72a9d0ee05
11 changed files with 1073 additions and 69 deletions
+16
View File
@@ -0,0 +1,16 @@
import { AccessRight } from "@/features/Calendars/CalendarTypes";
// Maps our AccessRight numeric value to the DAV share property key
export function accessRightToDavProp(
right: AccessRight
): "dav:administration" | "dav:read-write" | "dav:read" {
switch (right) {
case 5:
return "dav:administration";
case 3:
return "dav:read-write";
case 2:
default:
return "dav:read";
}
}