You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think having a middleware to check roles is a good idea. Roles are simply a way to give a user abilities. If you want all admins and editors to be able to create posts, give them that ability:
What do you think about middleware?
Something like this for roles:
And one more for an ability:
The text was updated successfully, but these errors were encountered: