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!
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!