Fix #855: generated events maybe unpublished caused by user rights check