Change permission checks to use serverspec resource types