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
can I check with your plugin, if the user has an role without knowing the name ?
Background:
Only user with a role can login in the admin panel. So I have a custom middleware, in which I will check, If the user is auth and if the user has an role (but I don't know the name).
Currently I use database access via model.
Is there a better solution ?
Greetings!
The text was updated successfully, but these errors were encountered:
hey @heikobihlmaier you're question makes no sense. How can you check a role without knowing what it is? if you know a permission you can check that on the user
Hello @gravitano,
can I check with your plugin, if the user has an role without knowing the name ?
Background:
Only user with a role can login in the admin panel. So I have a custom middleware, in which I will check, If the user is auth and if the user has an role (but I don't know the name).
Currently I use database access via model.
Is there a better solution ?
Greetings!
The text was updated successfully, but these errors were encountered: