Translated until lib/permissions.js