Allow non-async optional user actions

This change just duplications @smessmer's fixes for authorizedAction.