Rework permissions system
For a while now, I've been looking at the permissions table and wondered "this might be getting too big" (wink wink nudge nudge huehue).
After somebody made a suggestion to use many-to-many
relationships instead (like we currently do with assigning roles to users), I thought this was a brilliant idea.
I think this is a big improvement especially considering more and more permissions will get added over time.
It would also mean that we can change the PermissionsComponent
a bit to automatically add permissions to the database if they don't exist (instead of throwing an exception).