@@ -27,6 +27,7 @@ import ErrorBoundary from 'components/errors/ErrorBoundary';
27
27
import { get } from 'utils/fetch' ;
28
28
29
29
import CopyConfigurationFromRegistrationBackend from './CopyConfigurationFromRegistrationBackend' ;
30
+ import SkipOwnershipCheck from './SkipOwnershipCheck' ;
30
31
import useStatus from './useStatus' ;
31
32
32
33
const PLUGIN_ID = 'objects_api' ;
@@ -82,14 +83,15 @@ const ObjectsAPIFields = () => {
82
83
const { values, setFieldValue, setValues} = useFormikContext ( ) ;
83
84
const {
84
85
plugin,
85
- options : { objecttypeUuid, objecttypeVersion, objectsApiGroup} ,
86
+ options : { objecttypeUuid, objecttypeVersion, objectsApiGroup, skipOwnershipCheck } ,
86
87
} = values ;
87
88
const { showCopyButton, toggleShowCopyButton} = useStatus ( ) ;
88
89
89
90
const defaults = {
90
91
objectsApiGroup : null ,
91
92
objecttypeUuid : '' ,
92
93
objecttypeVersion : null ,
94
+ skipOwnershipCheck : false ,
93
95
authAttributePath : undefined ,
94
96
variablesMapping : [ ] ,
95
97
} ;
@@ -235,13 +237,26 @@ const ObjectsAPIFields = () => {
235
237
objectTypeFieldName = "options.objecttypeUuid"
236
238
/>
237
239
</ ErrorBoundary >
238
- < AuthAttributePath
239
- name = { 'options.authAttributePath' }
240
- objectsApiGroup = { objectsApiGroup }
241
- objecttypeUuid = { objecttypeUuid }
242
- objecttypeVersion = { objecttypeVersion }
243
- required
244
- />
240
+ </ Fieldset >
241
+
242
+ < Fieldset
243
+ title = {
244
+ < FormattedMessage
245
+ description = "Objects API ownership check fieldset title"
246
+ defaultMessage = "Ownership checks"
247
+ />
248
+ }
249
+ >
250
+ < SkipOwnershipCheck />
251
+ { ! skipOwnershipCheck && (
252
+ < AuthAttributePath
253
+ name = { 'options.authAttributePath' }
254
+ objectsApiGroup = { objectsApiGroup }
255
+ objecttypeUuid = { objecttypeUuid }
256
+ objecttypeVersion = { objecttypeVersion }
257
+ required
258
+ />
259
+ ) }
245
260
</ Fieldset >
246
261
247
262
< Fieldset
0 commit comments