diff --git a/process/PermissionCalendar_lib/process.js b/process/PermissionCalendar_lib/process.js index 372f85e353234519d6dd386b16772edb0b5d6c95..06116cc69c8e5225b8c5739b7a4161509497120f 100644 --- a/process/PermissionCalendar_lib/process.js +++ b/process/PermissionCalendar_lib/process.js @@ -4,7 +4,6 @@ import("system.db"); import("system.project"); import("system.plugin"); import("system.translate"); -import("system.logging"); import("AttributeRegistry_basic"); import("Sql_lib"); import("Employee_lib"); @@ -425,7 +424,7 @@ PermissionCalendar.getPermissions = function(pCurrentUser) */ PermissionCalendar._getUser = function() { - users = tools.getUsersByAttribute(tools.ISACTIVE, ["true"], tools.PROFILE_FULL); + users = tools.getUsersByAttribute(tools.ISACTIVE, ["true"], tools.PROFILE_DEFAULT); return users.map(function (user) { return [ @@ -445,8 +444,7 @@ PermissionCalendar._getUser = function() */ PermissionCalendar.getAllParents = function(pUserId) { - let user = tools.getUsersByAttribute(tools.NAME, [pUserId], tools.PROFILE_FULL)[0]; - + var user = tools.getUserByAttribute(tools.NAME, [pUserId], tools.PROFILE_DEFAULT); var departments = []; var department = user[tools.PARAMS].department; while (department != null && department != "" && department != undefined)