Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(xo-server): typo in authorization level enterprise #6168

Merged
merged 1 commit into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

> Users must be able to say: “I had this issue, happy to know it's fixed”

- [Backup] Fix `plan enterprise is not defined in the PLANS object` (PR [#6168](https://github.com/vatesfr/xen-orchestra/pull/6168))

### Packages to release

> Packages will be released in the order they are here, therefore, they should
Expand All @@ -27,3 +29,5 @@
> - major: if the change breaks compatibility
>
> In case of conflict, the highest (lowest in previous list) `$version` wins.

- xo-server patch
12 changes: 6 additions & 6 deletions packages/xo-server/src/xo-mixins/authorization.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ import assert from 'assert'

const FREE = 1
const STARTER = 2
const ENTREPRISE = 3
const ENTERPRISE = 3
const PREMIUM = 4

export const PLANS = {
free: FREE,
starter: STARTER,
entreprise: ENTREPRISE,
enterprise: ENTERPRISE,
premium: PREMIUM,
}

const AUTHORIZATIONS = {
BACKUP: {
DELTA: STARTER,
DELTA_REPLICATION: ENTREPRISE,
DELTA_REPLICATION: ENTERPRISE,
FULL: STARTER,
METADATA: ENTREPRISE,
WITH_RAM: ENTREPRISE,
SMART_BACKUP: ENTREPRISE,
METADATA: ENTERPRISE,
WITH_RAM: ENTERPRISE,
SMART_BACKUP: ENTERPRISE,
S3: STARTER,
},
DOCKER: STARTER, // @todo _doDockerAction in xen-orchestra/packages/xo-server/src/xapi/index.mjs
Expand Down