mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 00:39:49 +00:00
Disable global actions for CE
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
6392317f9b
commit
fb28853848
@ -3,6 +3,7 @@ import { get } from 'lodash';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Flex } from '@buffetjs/core';
|
||||
import { useIntl } from 'react-intl';
|
||||
import IS_DISABLED from 'ee_else_ce/components/Roles/GlobalActions/utils/constants';
|
||||
import { usePermissionsDataManager } from '../../../hooks';
|
||||
import CheckboxWithCondition from '../CheckboxWithCondition';
|
||||
import { findDisplayedActions, getCheckboxesState } from './utils';
|
||||
@ -27,7 +28,7 @@ const GlobalActions = ({ actions, isFormDisabled, kind }) => {
|
||||
return (
|
||||
<CheckboxWithCondition
|
||||
key={actionId}
|
||||
disabled={isFormDisabled}
|
||||
disabled={isFormDisabled || IS_DISABLED}
|
||||
message={formatMessage({
|
||||
id: `Settings.roles.form.permissions.${label.toLowerCase()}`,
|
||||
defaultMessage: label,
|
||||
|
@ -0,0 +1,3 @@
|
||||
const IS_DISABLED = true;
|
||||
|
||||
export default IS_DISABLED;
|
@ -0,0 +1,3 @@
|
||||
const IS_DISABLED = false;
|
||||
|
||||
export default IS_DISABLED;
|
Loading…
x
Reference in New Issue
Block a user