Product list filter by user and category type

Hi to all, i have a question. My project has a dropdown called category, with 2 values: “tecnic” and “sales”. Actually what i need is, when a user with tecnic role log in, can see only tecnic project. and all other users can see all. There is a way to filter the list?

thanks all

Hello
By using Security Groups and Roles you can set it so the Role only sees the certain records assigned to their “group”

2 Likes

In this way you need to assign records to a security group. You can do this while creating them: through a logic hook (after_save) you can add a security group to the record you’re going to save. However, in similar cases, I apply a custom view.list.php to module and work on ‘custom_where’ parameter to filter records per user’s department.

1 Like