Skip to content
Snippets Groups Projects
Commit eaeadec6 authored by Simon Leipold's avatar Simon Leipold Committed by Benjamin Ulrich
Browse files

#1046553 - Permissions: Kombination von zwei Rollen funktioniert nicht - fixed in person entity

parent 5fd38490
No related branches found
No related tags found
No related merge requests found
import("system.vars");
import("system.result");
var from = "CONTACT join ORGANISATION on (ORGANISATION.ORGANISATIONID = CONTACT.ORGANISATION_ID)";
var sqlStr = "select PERSON_ID from CONTACT where ORGANISATION_ID in " +
" (select CONTACT.ORGANISATION_ID from CONTACT " +
" join ORGANISATION on (ORGANISATION.ORGANISATIONID = CONTACT.ORGANISATION_ID) " +
" where PERSON_ID is null and " + vars.get("$local.condition") + ")" +
" and PERSON_ID is not null";
result.string("PERSONID in (select CONTACT.PERSON_ID from " + from + " where " + vars.get("$local.condition")+ ")");
\ No newline at end of file
result.string("PERSONID in (" + sqlStr + ")");
\ 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