Add role-based visibility and management features for products
- Introduced a role-based visibility system for products, ensuring that only users with approved roles can view specific products. - Added new database tables for roles, user roles, and product role visibility to manage access control. - Implemented utility functions for role management, including fetching approved roles, checking product visibility, and assigning roles to users and products. - Updated API endpoints to filter products based on user roles, enhancing security and user experience. - Prepared the database schema for future role request and approval workflows in upcoming phases.
This commit is contained in:
1000
server/database/migrations/meta/0001_snapshot.json
Normal file
1000
server/database/migrations/meta/0001_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user