Make record based on status accessible only to users with role

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • a.slyzhko
    commented on 's reply
    I'm trying to extend access to records. And get success with single record with AccessChecker, but no luck with list view. I applied Mandatory filter to select records, but they don't appear on front-end

  • yuri
    replied
    Custom access checker example: https://github.com/espocrm/espocrm/b...essChecker.php

    Custom access filter example: https://github.com/espocrm/espocrm/b.../Mandatory.php

    Leave a comment:


  • yuri
    replied
    Hi Maarten,

    It will require some coding. You need a custom ACL checker and SELECT filter.

    1. ACL

    Access checker https://docs.espocrm.com/development...eckerclassname

    It checks access to a specific record.

    2. SELECT

    Access control filter: https://docs.espocrm.com/development...erclassnamemap

    Applies conditions to SQL when records are selected.

    You can define mandatory filter that will be always applied for all users. In this filter class apply where conditions depending on a user.

    Leave a comment:


  • Make record based on status accessible only to users with role

    Hi,

    I would like to make records based on status accessible to users with specific roles.

    So e.g. record Volunteer, with status Applicant, Active, Excited.
    I want regular users to only be able to access active volunteers. And someone with a specific role to see also Applicant and Excited volunteers.

    I wasn't able yet to find the conditional logic to do this.

    Any thoughts?
Working...