Skip to content
Snippets Groups Projects
Commit 4f05494b authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1057903][geschützte Aufgaben: Rechte...

[Projekt: Entwicklung - Neon][TicketNr.: 1057903][geschützte Aufgaben: Rechte werden ignoriert und allen Benutzern angezeigt]
parent 8c908e86
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,19 @@ if (loadNothing)
}
else
{
//null has a special sql treatment, therefor check null and != 1
var protectionLevelCondition = newWhere("TASK.PROTECTIONLEVEL != 1 or TASK.PROTECTIONLEVEL is null");
if (ownContactId)
{
protectionLevelCondition.or(
newWhere("TASK.PROTECTIONLEVEL = 1")
.and(newWhere("TASK.EDITOR_CONTACT_ID", ownContactId)
.or("TASK.REQUESTOR_CONTACT_ID", ownContactId)
)
);
}
cond.and(protectionLevelCondition)
//TODO: use a preparedCondition (.build instead of .toString) when available #1030812 #1034026
result.string(cond.toString());
}
\ 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