From 55a7237958501375b2ce10304ee2495b548fbdd3 Mon Sep 17 00:00:00 2001 From: "a.schindlbeck" <a.schindlbeck@adito.de> Date: Fri, 24 May 2019 08:37:08 +0200 Subject: [PATCH] Calendar: autostartneon configuration --- process/autostartNeon/process.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/process/autostartNeon/process.js b/process/autostartNeon/process.js index e80cf3c174..9188b8fe3b 100644 --- a/process/autostartNeon/process.js +++ b/process/autostartNeon/process.js @@ -4,17 +4,6 @@ import("system.notification") import("system.text"); import("system.util"); -var users = ["Admin", "Birgit Leicht", "John Doe"] -calendars.addPermissions(users, calendars.VEVENT, ["READ", "WRITE"], null, false, calendars.SORTSTRATEGY_NATURAL); +var users = ["Admin", "Birgit Leicht", "Harold Smith", "Herbert Obermeier", "Lisa Sommer", "Susanne Lustig"]; +calendars.setCalendarUser(users, calendars.RIGHT_READ | calendars.RIGHT_WRITE, false, calendars.SORTSTRATEGY_NATURAL); calendars.setCheckAttendeesOnWrite(false); - -//var user = tools.getCurrentUser(); -//var notis = notification.getUserNotifications(user["name"], null); -// -//var noti = notis[0]; -//logging.log("noti USERID: " + noti); -//logging.log("noti2 USERID: " + noti[notification.USERID.toSource()]); -//notification.updateUserNotificationState(noti[notification.USERID], noti[notification.CONTENTID], notification.STATE_ARCHIVE); -// -//notis = notification.getUserNotifications(user["name"], null); -//logging.log("notifications: " + notis[0][notification.STATE]); \ No newline at end of file -- GitLab