check if user is allowed to edit event