Skip to content

Commit

Permalink
feat: add plan check
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeauchamp committed Dec 19, 2023
1 parent 8a48289 commit 419279e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/xo-server/src/xo-mixins/authorization.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const AUTHORIZATIONS = {
},
LIST_MISSING_PATCHES: STARTER,
ROLLING_POOL_UPDATE: ENTERPRISE,
ROLLING_POOL_REBOOT: ENTERPRISE,
}

export default class Authorization {
Expand Down
2 changes: 1 addition & 1 deletion packages/xo-server/src/xo-mixins/xen-servers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ export default class XenServers {

async rollingPoolUpdate($defer, pool) {
const app = this._app

await app.checkFeatureAuthorization('ROLLING_POOL_UPDATE')
const [schedules, jobs] = await Promise.all([app.getAllSchedules(), app.getAllJobs('backup')])

const poolId = pool.id
Expand Down

0 comments on commit 419279e

Please sign in to comment.