0
Sraman created
- ABP Framework version: v7.3.1
- UI Type: MVC
- Database System: EF Core (SQL Server)
- **Tiered (for MVC) **: no
- Exception message and full stack trace:
- Steps to reproduce the issue:
- How to set permissions for Docs modules on the main menu similar to other modules?
- How to list specific documents to each user instead of showing all?
- And also how to use Docs module with Multi tenant ?
1 Answer(s)
-
0
Hey,
the docs module is not designed for that. It is meant to host documentation for everyone.
Has you can see here: https://github.com/abpframework/abp/blob/dev/modules/docs/src/Volo.Docs.Admin.Application.Contracts/Volo/Docs/Admin/DocsAdminPermissions.cs
There is no permission definition on a document level.
Also, it's not designed for multitenancy: https://github.com/abpframework/abp/tree/dev/modules/docs/src/Volo.Docs.Domain/Volo/Docs
Based on that information, you can either make a feature request here: https://github.com/abpframework/abp/issues OR: do something like this:
- Implement your own Application and UI Layer with your specific needs, with permission and multitenancy logic matching your needs. Note that you have to come up with a different solution for matching the data to a tenant as the Entities do not implement IMultiTenancy
- Override the default Application service implementations and (for example) just throw NotImplementedException's to prevent that someone gains access through the default logic