Skip to content
Snippets Groups Projects
Commit 94775c0a authored by Johannes Hörmann's avatar Johannes Hörmann Committed by Andreas Schindlbeck
Browse files

fix state process appointment_entitiy - partstatactiongroup

parent aa9baea9
No related branches found
No related tags found
No related merge requests found
......@@ -8,13 +8,20 @@ if(vars.getString("$param.Entry_param"))
{
var event = JSON.parse(vars.getString("$param.Entry_param"));
var ownerCn = event[calendars.USER2]["cn"];
var currentUserTitle = vars.getString("$sys.user");
if(!(event[calendars.ORGANIZER] == currentUserTitle) && currentUserTitle == ownerCn)
result.object(neon.COMPONENTSTATE_AUTO);
if (event[calendars.USER2])
{
var ownerCn = event[calendars.USER2]["cn"];
var currentUserTitle = vars.getString("$sys.user");
if(!(event[calendars.ORGANIZER] == currentUserTitle) && currentUserTitle == ownerCn)
result.object(neon.COMPONENTSTATE_AUTO);
else
result.object(neon.COMPONENTSTATE_INVISIBLE);
}
else
{
result.object(neon.COMPONENTSTATE_INVISIBLE);
}
}
else
{
......
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