Leave to bring the action may be granted upon the application of any state's attorney or of any person who has a special interest in the action, and the court or judge may, at its discretion, direct notice of such application to be given to the corporation or its officers, previous to granting such leave, and may hear the corporation in opposition thereto.
SDCL 21-28-13