JosephSilber/bouncer

Super bummed to see levels removed

devinfd opened this issue · 2 comments

I'm just getting around to updating my app I just realized that levels were removed from Bouncer. That's a big shame. They were one of the best unique features of this package compared to other acl packages. :(

I can definitely see where you're coming from, especially since you've already implemented it in your app.


It was removed because the maintenance burden was just too big, and it really prevented many different features. It's also tricky to reason about when you add forbidden abilities into the mix. It was a constant source of confusion for anyone trying to use it.

I wasn't sure about it originally, which is why I never documented it.


Hierarchical levels make more sense to live within your codebase. Wherever you manage abilities, you should also grant/revoke them to the roles with higher/lower levels, as you see fit.

Understood