-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FWF-4276 [feature] enabled edit for default role and optimized code (#…
…450) * FWF-4276 [feature] enabled edit for default role and optimized code * added working directory as comment in ci for fomsflow-component
- Loading branch information
1 parent
bdf6e7c
commit dfd6508
Showing
3 changed files
with
11 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,14 @@ | ||
const MULTITENANCY_ENABLED_VARIABLE = | ||
(window._env_ && window._env_.REACT_APP_MULTI_TENANCY_ENABLED) || false; | ||
window._env_?.REACT_APP_MULTI_TENANCY_ENABLED || false; | ||
const KEYCLOAK_ENABLE_CLIENT_AUTH_VARIABLE = | ||
(window._env_ && window._env_.REACT_APP_KEYCLOAK_ENABLE_CLIENT_AUTH) || false; | ||
window._env_?.REACT_APP_KEYCLOAK_ENABLE_CLIENT_AUTH || false; | ||
|
||
export const MULTITENANCY_ENABLED = | ||
MULTITENANCY_ENABLED_VARIABLE === "true" || | ||
MULTITENANCY_ENABLED_VARIABLE === true | ||
? true | ||
: false; | ||
MULTITENANCY_ENABLED_VARIABLE === "true" || MULTITENANCY_ENABLED_VARIABLE === true; | ||
|
||
export const KEYCLOAK_ENABLE_CLIENT_AUTH = | ||
KEYCLOAK_ENABLE_CLIENT_AUTH_VARIABLE === "true" || | ||
KEYCLOAK_ENABLE_CLIENT_AUTH_VARIABLE === true | ||
? true | ||
: false; | ||
KEYCLOAK_ENABLE_CLIENT_AUTH_VARIABLE === "true" || KEYCLOAK_ENABLE_CLIENT_AUTH_VARIABLE === true; | ||
|
||
export const BASE_ROUTE = MULTITENANCY_ENABLED ? "/tenant/:tenantId/" : "/"; | ||
|
||
export const ADMIN_ROLE = "formsflow-admin"; | ||
|
||
export const DEFAULT_ROLES = [ | ||
"/camunda-admin", | ||
"/formsflow", | ||
"/formsflow/formsflow-designer", | ||
"/formsflow/formsflow-reviewer", | ||
"/formsflow/formsflow-client", | ||
"/formsflow-admin" | ||
]; |