I have users who each belong to a department (e.g., biology, psychology). Some data (e.g., articles) should only be accessible to users in the departments for which that article has been assigned. For this case, let's assume that the "articles" table has a column "department" and users also have a column "department". Users should only be able to see articles belonging to their department.
I considered (1) custom permissions on the "articles" table and (2) a custom module. For (2), I was hoping I might be able to import a content Vue component to make use of the table UI and somehow customize the query being to pull data for that table such that only articles within the users' department would be displayed.
I'd appreciate any tips or pointers you can offer. Thanks!