truncate() is aliased to delete() if restrictions enabled

if restrictions are enabled, truncate is rewritten to delete so that
records which the user has no access to are not deleted