Custom Access Checker

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kacper
    Junior Member
    • Oct 2023
    • 29

    Custom Access Checker

    Hello
    how to add custom Access Chceker for my custom entity?
    I've created Access Chcker file in custom/Espo/Custom/Classes/Acl/Dictionary.php, then I've added "accessCheckerClassName": "Espo\\Custom\\Classes\\Acl\\Dictionary" entry to custom/Espo/Custom/Resources/metadata/aclDefs/Dictionary.json.
    I've rebuilded and when trying to refresh the page I received error "InjectableFactory: Class 'Espo\Custom\Classes\Acl\Dictionary' does not exist."
    What path to Access Checker should look like?
  • kacper
    Junior Member
    • Oct 2023
    • 29

    #2
    Moved file to "Espo\\Custom\\Classes\\Acl\\{entityName}\\AccessC hecker" resolved the problem. I'm not sure if wrong path was a problem but now it works.

    Comment

    Working...