rem: return event->customProperty( "EGWRESOURCE", "RIGHTS" ).toInt();
add: return incidence->customProperty( "EGWRESOURCE", "RIGHTS" ).toInt();
context: static int rights( Event *event ){  return event->customProperty( "EGWRESOURCE", "RIGHTS" ).toInt();}