Js Snclient

const response = await repository.security.hasPermission('/Root/Content/IT', ['SeePermissions'], '/Root/IMS/Public/devdog')