0

I want to check if the current logged in user has the administrator role. For that, I want to get the value of resource_id in authorization_rule table for the current logged in admin user.

enter image description here

Note:Please suggest a method to achieve this using magento2 way. Using Sql query is not allowed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.