Why are all the models and permissions loading...? #2338
Replies: 2 comments 4 replies
-
Hi, the math doesn't add up to me, wich version are you using? It only loads the role / permissions the current user has |
Beta Was this translation helpful? Give feedback.
-
My spatie package version support autoload requires requires (dev) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Guys, fairly new to the whole spatie permission package and it just doesn't make sense to me.
I currently have 161 permission and 15 roles and when i load my admin role management page there are more than 500 models loaded..
Why does spatie just not load the role / permissions the current use has...?
Video link
All the model links
So the 500 is when you start creating items on the site but even the base is loading everything. I have a Super admin setup and its a Role that has one permission that allows full access but why is everything being loaded!!??
Beta Was this translation helpful? Give feedback.
All reactions