* [#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:
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user