diff --git a/process/autostartNeon/process.js b/process/autostartNeon/process.js index e80cf3c174ce12bc2daf4c1ab758241b2b4477d8..9188b8fe3be8ddcd93acdc06c8ac6aa26b76b05e 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