feat(xo-server): limit scheduled backup health check to enterprise (#6240)
This commit is contained in:
committed by
GitHub
parent
5393d847f0
commit
92660fd03e
@@ -19,6 +19,7 @@ const AUTHORIZATIONS = {
|
||||
DELTA: STARTER,
|
||||
DELTA_REPLICATION: ENTERPRISE,
|
||||
FULL: STARTER,
|
||||
HEALTHCHECK: ENTERPRISE,
|
||||
METADATA: ENTERPRISE,
|
||||
WITH_RAM: ENTERPRISE,
|
||||
SMART_BACKUP: ENTERPRISE,
|
||||
|
||||
@@ -345,6 +345,9 @@ export default class BackupNg {
|
||||
if (jobSettings.checkpointSnapshot === true) {
|
||||
await app.checkFeatureAuthorization('BACKUP.WITH_RAM')
|
||||
}
|
||||
if (jobSettings.healthCheckSr !== undefined) {
|
||||
await app.checkFeatureAuthorization('BACKUP.HEALTHCHECK')
|
||||
}
|
||||
}
|
||||
|
||||
async deleteBackupNgJob(id) {
|
||||
|
||||
Reference in New Issue
Block a user