Hi there
in Document entity, i add a boolean attribute "financialConfidentiality".
I want to control the read access to the "documents" having this attribut set. It will be only accessible to users having the good role.
I'm working on an ACL to restrict "read" access...
cf : http://forum.espocrm.com/forum/bug-r...heckentityread
But i would like to filter the default record table content that is displayed when clicking on the menu "Documents".
By default, all documents are listed... I would like to add my custom code to add a where condition (if my current user has a given role and the row has attribute financialConfidentiality: true, it can be displayed).
i have already used SelectManager to add custom Filter (on the left part of the search field).
Here, i would like to add this default behaviour on the record table, whatever a custom filter is set or not.
Which method should i override in custom folder?
Thanks a lot
in Document entity, i add a boolean attribute "financialConfidentiality".
I want to control the read access to the "documents" having this attribut set. It will be only accessible to users having the good role.
I'm working on an ACL to restrict "read" access...
cf : http://forum.espocrm.com/forum/bug-r...heckentityread
But i would like to filter the default record table content that is displayed when clicking on the menu "Documents".
By default, all documents are listed... I would like to add my custom code to add a where condition (if my current user has a given role and the row has attribute financialConfidentiality: true, it can be displayed).
i have already used SelectManager to add custom Filter (on the left part of the search field).
Here, i would like to add this default behaviour on the record table, whatever a custom filter is set or not.
Which method should i override in custom folder?
Thanks a lot
Comment