BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
14.8k stars 1.86k forks source link

Inline Role-based access control #4597

Open GHAFRI opened 11 months ago

GHAFRI commented 11 months ago

Describe the feature you'd like

I'm looking for a feature that allows for role-based content visibility within a single page. Specifically, I want to have sections of content on the same page that are conditionally displayed based on the logged-in user's role. For instance, a "support" role user should be able to see both "guest" and "support" sections, while a "mod" role user should see "guest", "support", and "mod" sections, all on the same page. This is not about restricting access to entire pages based on roles, but rather displaying or hiding specific sections of content within a page. Does your platform offer such functionality natively, or is there a way to achieve this using custom code?

Describe the benefits this would bring to existing BookStack users

Ability to make one page content without being redundant on multiple pages. For example if there is a documentation that has different level of access, only supports will be able what they can access, while mods can see theirs and supports only.

Can the goal of this request already be achieved via other means?

I dont think so

Have you searched for an existing open/closed issue?

How long have you been using BookStack?

Not using yet, just scoping

Additional context

No response

ssddanbrown commented 11 months ago

Hi @GHAFRI, It would be worth reading through #978 since that is a very similar request, where I also share a potential system using existing in-platform features. Otherwise, I probably wouldn't look to bring specific permission control/functionality down to this level of detail due to the complexity it introduces, for relatively little demand.