Written by Robin Cornett. Last updated on January 30, 2024. User capability checks added to AJAX actions