Limit Product Item / Category access by team

We support multiple businesses on our CRM.  We are working to implement the Quotes module and I would like to limit the visibility of various Product Items by Team.  I would prefer to use Product Categories as the field to apply the Team's permission but could do it at  the part level as well.

I do not see Teams as an associated module with Product Catalog.  Is it possible to limit visibility to Product Items or Categories by Team?

Thank you.


Bob

product catalog  team team-based permissions

Parents Reply
  • This is not the enough once ProductTemplates' __construct method sets by default:

    $this->disable_row_level_security =true;

    So you also need to create an extended Include and define the following:

    $moduleList[] = 'ProductTemplates';
    $objectList['ProductTemplates'] = 'ProductTemplate';
    $beanList['ProductTemplates'] = 'CustomProductTemplate';
    $beanFiles['CustomProductTemplate'] = 'custom/modules/ProductTemplates/ProductTemplate.php';

    At last create the file custom/modules/ProductTemplates/ProductTemplate.php with that content:

    require_once('modules/ProductTemplates/ProductTemplate.php');

    class CustomProductTemplate extends ProductTemplate {
     public function __construct() {
     parent::__construct();
     $this->disable_row_level_security = false;
     }
    }

    Run the repair actions described by hats

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
Children