I’m creating a CMS for a franchise business (estate agents) where each of the franchises will manage their own content. The content types are similar across all the franchises and there is only one instance of Strapi. This is important as the website should show the content from all the franchises in one website with only 1 API call. A franchise would have a role that when logged in to the admin panel would only see records created by that user. This is important as franchises should not see and edit the records published by other franchises. In this instance I can have a single user account per franchise.
Is this something I can achieve out the box with Strapi or would this require some custom development? I can’t find anything on this in the docs on roles.
Hi @codycustard,
This is not something you can achieve with Strapi Out of the box, but will require some custom development.
You can try implementing an is owner policy as described in the docs: Is owner policy docs
It adds a relation from content to user to know who the author of the content is.
When this relation is established in the database you can refuse anybody from editing the content if they are not the author.
If you have implemented the is owner policy, and have extended the collection-types.js file you can filter the results in the find controller to only show the items of which the requesting user is the author.