I want to change wordpress comment approve behavior. By default wordpress has an option to allow users to add new comments without approving if they already have an approved comment. I want separate this functionality by authors, e.i. if author A approves comment of user A, user A can add other comments without approving, but if user A adds new comments to author B's post, he should wait for an approval first, once his comment is approved, user A can comment without approval, and etc.
How can be this achieved in wordpress?