Need to know which permission allows a role to see and use search filters.
Hi,
It’s Search: edit filter
role:
@ResourceRole(name = "Search: edit filter", code = EditSearchFilterRole.CODE, scope = SecurityScope.UI)
public interface EditSearchFilterRole {
String CODE = "search-flowui-edit-filter";
@EntityPolicy(entityClass = FullTextFilterCondition.class, actions = EntityPolicyAction.ALL)
@EntityAttributePolicy(entityClass = FullTextFilterCondition.class, attributes = "*", action = EntityAttributePolicyAction.MODIFY)
void editSearchFilter();
}
Regards,
Ivan
Hi, Ivan.
I cannot find this permissions anywhere within the roles from the front end. Is the code above supposed to be added prior to compilation?
Andy
Hi, Andy
This is out-of-the-box role included into Search
add-on. This orle should be assigned to user that should have access to Full Text Search filter.
Note: this role has UI
scope - that means it works only within generic UI.
If you want to utilize it somehow via REST - it will not work. So you need to implement similar role on project side with scope = API
(or without scope parameter - that means “both scopes”).
Regards,
Ivan
I may need your help
Hi, Andy.
I thought you mentioned permissions for full-text filter related to Search
addon.
But according to the screenshots you have an issue with filters in general.
So you try to ‘add search condition’ on your Codes Browser
and get this issue. Is it correct?
Please provide the following info:
- Your Jmix version
- XML descriptor of your
Codes Browser
screen - Set
logging.level.io.jmix.core.AccessLogger=debug
application property, reproduce the issue and provide the log.
Also try to add role UI: minimal access
and check.
Regards,
Ivan