BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

add `unauthenticated` special role for unauthenticated users

Open squiddle opened this issue 10 years ago • 3 comments

That would allow to configure individual books to be publicly viewable or even editable (not sure about drafts, as there is no real user identity and garbage drafts could accumulate). But at least view should be selectable to allow public viewing in a single book.

Why use the role system for this? It adds not another mechanism into the authentication system, but builds on the existing one.

It also allows the removal of the public-viewing setting, which currently also acts as a second authorization information source. With an unauthenticated role it just means view for the unauthenticated user role and could be managed from the role settings page together with all other authorization settings.

squiddle avatar Jul 03 '16 10:07 squiddle

Hi @squiddle, Thanks for the suggestion. This should be fairly simple since that's exactly how the public permissions are currently handled! The system just hides the public role from any view.

If you view the roles table in your database you'll see a public role. Changing the hidden value from 1 to 0 will make it show up. Things do get funky when trying to edit as a public member though since they're not technically a user.

ssddanbrown avatar Jul 04 '16 17:07 ssddanbrown

Hey @ssddanbrown , any idea if this enhancement is gonna be on the next release?

riorii avatar Sep 22 '16 16:09 riorii

@riorii Yes, it will be. Although next release may not be for a small while.

ssddanbrown avatar Sep 29 '16 16:09 ssddanbrown