Open Gavrilov-Ivan opened 3 years ago
It's not possible to control visibility of menu items on addon side only.
Actions are added to menu within io.jmix.ui.app.filter.condition.AddConditionScreen#initCreatePopupButton
(jmix-ui).
Possible solution: implementations of FilterCondition
should optionally (e.g. via additional interface) provide name of some specific permission. If it'is provided it should be checked via SpecificOperationAccessContext
within io.jmix.ui.app.filter.condition.AddConditionScreen#initCreatePopupButton
. This is already done directly for JpqlFilterCondition
.
'Create Full-text condition' item should not be displayed if user is not granted to create such conditions.