From 79cfc5ea01a0ecc44dc2b520a861290d51eda171 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 8 Dec 2020 12:20:37 +0000 Subject: [PATCH] Fixing an issue with power user not being usable. --- packages/server/src/constants/index.js | 2 +- packages/server/src/utilities/security/roles.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/constants/index.js b/packages/server/src/constants/index.js index 587e751600..0ae805c064 100644 --- a/packages/server/src/constants/index.js +++ b/packages/server/src/constants/index.js @@ -32,7 +32,7 @@ const USERS_TABLE_SCHEMA = { constraints: { type: "string", presence: false, - inclusion: Object.keys(BUILTIN_ROLE_IDS), + inclusion: Object.values(BUILTIN_ROLE_IDS), }, }, }, diff --git a/packages/server/src/utilities/security/roles.js b/packages/server/src/utilities/security/roles.js index b503446823..6b6ec39b24 100644 --- a/packages/server/src/utilities/security/roles.js +++ b/packages/server/src/utilities/security/roles.js @@ -4,7 +4,7 @@ const { BUILTIN_PERMISSION_IDS } = require("./permissions") const BUILTIN_IDS = { ADMIN: "ADMIN", - POWER: "POWER_USER", + POWER: "POWER", BASIC: "BASIC", PUBLIC: "PUBLIC", BUILDER: "BUILDER",