diff --git a/opencti-platform/opencti-front/src/private/components/DashboardSettings.js b/opencti-platform/opencti-front/src/private/components/DashboardSettings.js index d786f629bc82..cdf0665c0ede 100644 --- a/opencti-platform/opencti-front/src/private/components/DashboardSettings.js +++ b/opencti-platform/opencti-front/src/private/components/DashboardSettings.js @@ -16,6 +16,7 @@ import Button from '@material-ui/core/Button'; import Slide from '@material-ui/core/Slide'; import graphql from 'babel-plugin-relay/macro'; import { QueryRenderer } from '../../relay/environment'; +import Security, { EXPLORE } from '../../utils/Security'; import inject18n from '../../components/i18n'; const Transition = React.forwardRef((props, ref) => ( @@ -89,63 +90,92 @@ class DashboardSettings extends Component { > {t('Dashboard settings')} - { - if (props) { - return ( -
- - - {t('Date reference')} - - - - - - {t('Custom dashboard')} - - - -
- ); - } - return
; - }} - /> + + + + {t('Date reference')} + + + +
+ } + > + { + if (props) { + return ( +
+ + + {t('Date reference')} + + + + + + {t('Custom dashboard')} + + + +
+ ); + } + return
; + }} + /> + diff --git a/opencti-platform/opencti-graphql/config/schema/opencti.graphql b/opencti-platform/opencti-graphql/config/schema/opencti.graphql index c3ffd670a286..3c9cdda7c020 100644 --- a/opencti-platform/opencti-graphql/config/schema/opencti.graphql +++ b/opencti-platform/opencti-graphql/config/schema/opencti.graphql @@ -144,15 +144,15 @@ type AppInfo { """ The OpenCTI api current memory usage """ - memory: AppMemory + memory: AppMemory @auth(for: [SETTINGS]) """ The list of OpenCTI software dependencies """ - dependencies: [DependencyVersion!]! + dependencies: [DependencyVersion!]! @auth(for: [SETTINGS]) """ The objects statistics """ - debugStats: AppDebugStatistics + debugStats: AppDebugStatistics @auth(for: [SETTINGS]) } ### STATS @@ -8491,7 +8491,7 @@ type Query { ###### INTERNAL platform_theme: String - about: AppInfo @auth(for: [SETTINGS]) + about: AppInfo logsWorkerConfig: LogsWorkerConfig @auth(for: [MODULES]) rabbitMQMetrics(prefix: String): RabbitMQMetrics @auth(for: [MODULES]) elasticSearchMetrics: ElasticSearchMetrics @auth(for: [MODULES])