Js Snclient

const response = await repository.security.hasPermission('/Root/Content/IT', ['Open'])