diff --git a/opencti-platform/opencti-front/src/schema/relay.schema.graphql b/opencti-platform/opencti-front/src/schema/relay.schema.graphql index 477ee262e864c..fab2c065c9083 100644 --- a/opencti-platform/opencti-front/src/schema/relay.schema.graphql +++ b/opencti-platform/opencti-front/src/schema/relay.schema.graphql @@ -1608,8 +1608,8 @@ type MeUser implements BasicObject & InternalObject { submenu_show_icons: Boolean submenu_auto_collapse: Boolean monochrome_labels: Boolean - draft_context: String can_manage_sensitive_config: Boolean + draft_context: String } type SessionDetail { diff --git a/opencti-platform/opencti-graphql/src/domain/attribute-utils.ts b/opencti-platform/opencti-graphql/src/domain/attribute-utils.ts index 435c95414e533..5f7c36c31bca8 100644 --- a/opencti-platform/opencti-graphql/src/domain/attribute-utils.ts +++ b/opencti-platform/opencti-graphql/src/domain/attribute-utils.ts @@ -3,6 +3,7 @@ import { baseType, createdAt, creators, + draftIds, entityLocationType, entityType, files, @@ -27,6 +28,7 @@ export const INTERNAL_ATTRIBUTES = [ id.name, internalId.name, standardId.name, + draftIds.name, xOpenctiStixIds.name, iAliasedIds.name, // Auditing diff --git a/opencti-platform/opencti-graphql/src/http/httpServer.js b/opencti-platform/opencti-graphql/src/http/httpServer.js index 803b6f9a32c0e..f90dd18eefa56 100644 --- a/opencti-platform/opencti-graphql/src/http/httpServer.js +++ b/opencti-platform/opencti-graphql/src/http/httpServer.js @@ -124,10 +124,10 @@ const createHttpServer = async () => { executeContext.synchronizedUpsert = req.headers['synchronized-upsert'] === 'true'; // If full sync needs to be done try { const user = await authenticateUserFromRequest(executeContext, req, res); - if (isFeatureEnabled('DRAFT_WORKSPACE') && !executeContext.draft_context) { - executeContext.draft_context = user.draft_context; - } if (user) { + if (isFeatureEnabled('DRAFT_WORKSPACE') && !executeContext.draft_context) { + executeContext.draft_context = user.draft_context; + } executeContext.user = userWithOrigin(req, user); } } catch (error) {