790d97383c
* feat(workspaces): drop createdByUserId from the dataschema * feat(workspaces): repositories WIP * merge * protect against removing last admin in workspace * quick impl and stub tests * add tests * services * unit tests for role services * feat(workspaces): authorize project creation if workspace specified * feat(workspaces): emit project created event * fix(workspaces): protect against adding a project to a workspace if module not enabled * fix(workspaces): oops broke tests during merge --------- Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
6 lines
186 B
TypeScript
6 lines
186 B
TypeScript
import { getFeatureFlags } from '@/modules/shared/helpers/envHelper'
|
|
|
|
export const isWorkspacesModuleEnabled = (): boolean => {
|
|
return getFeatureFlags().FF_WORKSPACES_MODULE_ENABLED
|
|
}
|