UBER-772: require having employee mixin to allow Staff mixin (#3618)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-08-24 10:34:18 +05:00 committed by GitHub
parent 04274d1167
commit 5ddddd060a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,9 @@
m.kind === ClassifierKind.MIXIN &&
!ignoreMixins.has(m._id) &&
(hierarchy.hasMixin(object, m._id) ||
(showAllMixins && hierarchy.isDerived(realObjectClass, hierarchy.getBaseClass(m._id))))
(showAllMixins &&
hierarchy.isDerived(realObjectClass, hierarchy.getBaseClass(m._id)) &&
(m.extends && hierarchy.isMixin(m.extends) ? hierarchy.hasMixin(object, m.extends) : true)))
)
}