Fixed: service createCommunicationEventWithoutPermission failed to store a communication
When you call the service createCommunicationEventWithoutPermission to create a anonymous communication or from a user without party permission, the service failed due to missing permission.
With the minilang to groovy conversion the userLogin system it's not loaded before call the main service createCommunicationEvent
@@ -205,7 +205,9 @@ def createCommunicationEvent() {
* @return
*/
def createCommunicationEventWithoutPermission() {
- Map result = run service: 'createCommunicationEvent', with: [*:parameters]
+ GenericValue system = from("UserLogin").where(userLoginId: 'system').cache().queryOne()
+ Map result = run service: 'createCommunicationEvent', with: [*:parameters,
+ userLogin: system]
return result
}
