Skip to content
Snippets Groups Projects
Commit 5c1f3cc9 authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

#1063252-Eigenschaften_leer Revert Changes autostart

parent 4b66ea53
No related branches found
No related tags found
No related merge requests found
......@@ -3,31 +3,10 @@ import("PermissionCalendar_lib");
import("Employee_lib");
import("system.calendars");
calendars.setCheckAttendeesOnWrite(false);
var userContactId = EmployeeUtils.getCurrentContactId();
vars.set("$global.user.contactId", userContactId);
var usersTools = tools.getStoredUsers();
var users = [];
for(var i = 0; i < usersTools.length; i++)
{
users.push(usersTools[i][1]);
}
calendars.setCalendarUser(users, calendars.RIGHT_READ | calendars.RIGHT_WRITE, false, calendars.SORTSTRATEGY_NATURAL);
var currentUser = EmployeeUtils.sliceUserId(EmployeeUtils.getCurrentUserId());
\ No newline at end of file
var currentUser = EmployeeUtils.sliceUserId(EmployeeUtils.getCurrentUserId());
PermissionCalendar.setPermissions(currentUser);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment