1
0
Fork 0
mirror of synced 2024-06-26 18:10:51 +12:00

Exporting roles differently to fix issue raised by test.

This commit is contained in:
Michael Drury 2022-11-08 20:01:01 +00:00
parent 9cfdfc174b
commit 0af56bed25

View file

@ -10,11 +10,15 @@ import { doWithDB } from "../db"
import { Screen, Role as RoleDoc } from "@budibase/types"
const { cloneDeep } = require("lodash/fp")
const BUILTIN_IDS = {
export const BUILTIN_ROLE_IDS = {
ADMIN: "ADMIN",
POWER: "POWER",
BASIC: "BASIC",
PUBLIC: "PUBLIC",
}
const BUILTIN_IDS = {
...BUILTIN_ROLE_IDS,
BUILDER: "BUILDER",
}
@ -390,10 +394,3 @@ export function getExternalRoleID(roleId?: string) {
}
return roleId
}
export const BUILTIN_ROLE_IDS = [
BUILTIN_IDS.ADMIN,
BUILTIN_IDS.POWER,
BUILTIN_IDS.BASIC,
BUILTIN_IDS.PUBLIC,
]