In my table I have:
PRODUCT
id_product
name
status
Where the status assumes the following values:
1 (Active)
2 (Inactive)
3 (Archived)
In the Product index view, I want the user to see certain statuses based on the permissions. Example:
- Administrator sees records with statuses 1, 2, and 3.
- Moderator views: 1 and 2
- User views: 1
How can I do this? What alternatives do I have?