Skip to content

Permissions hierarchy #26

Answered by JonPSmith
damianostre asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @damianostre,

I can answer because I tried the Read <- Write <- Admin and it didn't work out that well. Here is why I say that.

I was asked to build a large multi-tenant application and they wanted a way to change what a Role did dynamically, which is where the Roles / Permissions idea came from. At that stage we were worried about how many permissions we might have so many permissions that we could reach the cookie limit of 4000 bytes. Therefore we used the "higher" approach has something like this:

  • ReadXXX (#0A01) -> CreateXXX (#0A02)-> UpdateXXX (#0A03) -> SpecialXXX (#0A0A) -> DeleteXXX (#0A0B)-> etc. up to 16
  • ReadYYY (#0A11) -> ... etc.

The downside of this was it was really com…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@damianostre
Comment options

Answer selected by JonPSmith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants