JosephSilber / bouncer

Laravel Eloquent roles and abilities.
MIT License
3.43k stars 330 forks source link

Super bummed to see levels removed #604

Closed devinfd closed 2 years ago

devinfd commented 2 years ago

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. :(

JosephSilber commented 2 years ago

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.

devinfd commented 2 years ago

Understood