A user has a company_id and a many to many relationship with tasks. Each user has a role. Each role has permissions.
An admin should be able to see all tasks within the company. A user should only be able to see his own tasks within the company.
What are the pitfalls of each approach?
- Assign all admins to the m2m when a task is created
- Include a see_all_tasks permission as part of the admin role