diff --git a/backend/src/ee/services/license/licence-fns.ts b/backend/src/ee/services/license/licence-fns.ts index 3e30276cb..8da8afd39 100644 --- a/backend/src/ee/services/license/licence-fns.ts +++ b/backend/src/ee/services/license/licence-fns.ts @@ -32,7 +32,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({ oidcSSO: false, scim: false, ldap: false, - groups: false, + groups: true, status: null, trial_end: null, has_used_trial: true, diff --git a/frontend/src/views/Org/RolePage/components/RolePermissionsSection/RolePermissionsSection.tsx b/frontend/src/views/Org/RolePage/components/RolePermissionsSection/RolePermissionsSection.tsx new file mode 100644 index 000000000..4346bce3b --- /dev/null +++ b/frontend/src/views/Org/RolePage/components/RolePermissionsSection/RolePermissionsSection.tsx @@ -0,0 +1,93 @@ +import { faPlus } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; + +// import { createNotification } from "@app/components/notifications"; +import { + // DeleteActionModal, + IconButton +} from "@app/components/v2"; +// import { useDeleteIdentityFromWorkspace } from "@app/hooks/api"; +// import { usePopUp } from "@app/hooks/usePopUp"; + +// import { IdentityAddToProjectModal } from "./IdentityAddToProjectModal"; +// import { IdentityProjectsTable } from "./IdentityProjectsTable"; + +export const RolePermissionsSesction = () => { + // const { mutateAsync: deleteMutateAsync } = useDeleteIdentityFromWorkspace(); + + // const { popUp, handlePopUpOpen, handlePopUpClose, handlePopUpToggle } = usePopUp([ + // "addIdentityToProject", + // "removeIdentityFromProject" + // ] as const); + + // const onRemoveIdentitySubmit = async (id: string, projectId: string) => { + // try { + // await deleteMutateAsync({ + // identityId: id, + // workspaceId: projectId + // }); + + // createNotification({ + // text: "Successfully removed identity from project", + // type: "success" + // }); + + // handlePopUpClose("removeIdentityFromProject"); + // } catch (err) { + // console.error(err); + // const error = err as any; + // const text = error?.response?.data?.message ?? "Failed to remove identity from project"; + + // createNotification({ + // text, + // type: "error" + // }); + // } + // }; + + return ( +
| Name | +Role | +Added On | ++ |
|---|