diff --git a/process/Employee_lib/process.js b/process/Employee_lib/process.js index 17ca0efa8f9fb5878a1b5ff4599310c11d48f7b9..1394a104183042a9a94d00947089892e44e2fb30 100644 --- a/process/Employee_lib/process.js +++ b/process/Employee_lib/process.js @@ -100,7 +100,7 @@ EmployeeUtils.hasRelations = function (pContactId) //sql queries with selects on tables where an employee can be used var queries = [ SqlCondition.begin() - .andPrepare("ACTIVITY.CREATOR", pContactId) + .andPrepare("ACTIVITY.RESPONSIBLE", pContactId) .buildSql("select 1 from ACTIVITY"), SqlCondition.begin() .andPrepare("TASK.REQUESTOR_CONTACT_ID", pContactId)