forked from tsai/budibase
3 changed files with 29 additions and 5 deletions
@ -0,0 +1,14 @@ |
|||
import { auth } from "../stores/portal" |
|||
import { get } from "svelte/store" |
|||
|
|||
export const FEATURE_FLAGS = { |
|||
LICENSING: "LICENSING", |
|||
} |
|||
|
|||
export const isEnabled = featureFlag => { |
|||
const user = get(auth).user |
|||
if (user?.featureFlags?.includes(featureFlag)) { |
|||
return true |
|||
} |
|||
return false |
|||
} |
|||
Loading…
Reference in new issue