object check
This commit is contained in:
@@ -175,8 +175,12 @@ export default class LinkManagerEditParamsModalView extends ModalView {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const isObject = this.getMetadata().get(`scopes.${this.foreignEntityType}.object`) &&
|
if (
|
||||||
!this.systemEntityTypeList.includes(this.foreignEntityType);
|
!this.getMetadata().get(`scopes.${this.foreignEntityType}.object`) ||
|
||||||
|
this.systemEntityTypeList.includes(this.foreignEntityType)
|
||||||
|
) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return ['hasChildren', 'hasOne'].includes(this.type) ||
|
return ['hasChildren', 'hasOne'].includes(this.type) ||
|
||||||
(this.type === 'belongsTo' && this.foreignType === 'hasOne') ||
|
(this.type === 'belongsTo' && this.foreignType === 'hasOne') ||
|
||||||
|
|||||||
Reference in New Issue
Block a user