# xo-acl-resolver

> Xen-Orchestra internal: do ACLs resolution

Latest version **0.5.4** (published 2026-08-25) · AGPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install xo-acl-resolver
pnpm add xo-acl-resolver
yarn add xo-acl-resolver
bun add xo-acl-resolver
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.5.4 |
| Published | 2026-08-25 |
| First published | 2016-02-03 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 1 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 988 |
| Author | Vates SAS |
| Maintainers | julien-f, pdonias, florent.beauchamp, mpiton, b-nollet, pierre.brunet289 |

## Links

- npm: https://www.npmjs.com/package/xo-acl-resolver
- Repository: https://github.com/vatesfr/xen-orchestra
- Homepage: https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-acl-resolver
- Issues: https://github.com/vatesfr/xen-orchestra/issues
- npm.io page: https://npm.io/package/xo-acl-resolver

## Dependencies (1)

- [xo-common](https://npm.io/package/xo-common.md) ^0.11.0

## Recent versions

- 0.5.4 (latest) — 2026-08-25
- 0.0.0-0 (next) — 2016-02-03
- 0.5.3 — 2026-06-24
- 0.5.2 — 2025-08-27
- 0.5.1 — 2025-06-27
- 0.5.0 — 2024-03-28
- 0.4.1 — 2018-12-18
- 0.4.0 — 2018-11-16
- 0.3.0 — 2018-10-05
- 0.2.4 — 2018-05-31
- 0.2.3 — 2016-12-02
- 0.2.2 — 2016-10-04
- 0.2.1 — 2016-06-24
- 0.2.0 — 2016-06-07
- 0.1.0 — 2016-04-27
- … 1 more at https://npm.io/package/xo-acl-resolver/versions

## README

<!-- DO NOT EDIT MANUALLY, THIS FILE HAS BEEN GENERATED -->

# xo-acl-resolver

[![Package Version](https://badgen.net/npm/v/xo-acl-resolver)](https://npmjs.org/package/xo-acl-resolver) ![License](https://badgen.net/npm/license/xo-acl-resolver) [![PackagePhobia](https://badgen.net/bundlephobia/minzip/xo-acl-resolver)](https://bundlephobia.com/result?p=xo-acl-resolver) [![Node compatibility](https://badgen.net/npm/node/xo-acl-resolver)](https://npmjs.org/package/xo-acl-resolver)

> Xen-Orchestra internal: do ACLs resolution

## Install

Installation of the [npm package](https://npmjs.org/package/xo-acl-resolver):

```sh
npm install --save xo-acl-resolver
```

## Usage

```js
import check from 'xo-acl-resolver'

// This object contains a list of permissions returned from
// xo-server's acl.getCurrentPermissions.
const permissions = {
  /* ... */
}

// This function should returns synchronously an object from an id.
const getObject = id => {
  /* ... */
}

// For a single object:
if (check(permissions, getObject, objectId, permission)) {
  console.log(`${permission} set for object ${objectId}`)
}

// For multiple objects/permissions:
if (
  check(permissions, getObject, [
    [object1Id, permission1],
    [object12d, permission2],
  ])
) {
  console.log('all permissions checked')
}
```

## Contributions

Contributions are _very_ welcomed, either on the documentation or on
the code.

You may:

- report any [issue](https://github.com/vatesfr/xen-orchestra/issues)
  you've encountered;
- fork and create a pull request.

## License

[AGPL-3.0-or-later](https://spdx.org/licenses/AGPL-3.0-or-later) © [Vates SAS](https://vates.fr)

---
_Source: https://npm.io/package/xo-acl-resolver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
