Skip to content
Snippets Groups Projects
Commit 63b67ddb authored by Simon Leipold's avatar Simon Leipold
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 2002734][PermissionCalendar_lib...

[Projekt: Entwicklung - Neon][TicketNr.: 2002734][PermissionCalendar_lib imperformant aufgrund von tool-Profilaufrufen]
parent 8b813edc
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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