Fix permissions check inconsistency when deleting a service