How to give users permissions to see some Dashlets. error 403

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samukarna
    Junior Member
    • Mar 2016
    • 18

    How to give users permissions to see some Dashlets. error 403

    Hi,

    I'm having trouble with Dashlets: Opportunities by Stage, Opportunities by Lead Source, Sales by Month and Sales Pipeline.

    Users who are not administrators can not access the information, how could I be changing for the sales manager to see the team information and vendors see only their own?

    My version is 4.0.3

    Thank you all and me sorry for bad English, I'm Brazilian.
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi

    Not sure, I tested and it worked for users with "team" permission.

    You can change it in the file: application/Espo/Modules/Crm/Controllers/Opportunity.php

    There is a check and throw new Forbidden(); You can change the logic there.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • samukarna
      Junior Member
      • Mar 2016
      • 18

      #3
      how would I do to add new check rules, becoming team all users have access to team information, I would like only one type of cargo had access if the sales manager, when I switch to 'own' the user who created the opportunity is denied access to see their opportunities in Dashlet, I have no knowledge of php programming, could you help me?

      thank you

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        Try to remove throw new Forbidden();
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • samukarna
          Junior Member
          • Mar 2016
          • 18

          #5
          Allowed everyone to see the records.

          Comment

          Working...