How to Check User has Permission on Given ACL Resouces in Magento 2?

Verify Programmatically Current user has permission on given ACL Resource in Magento 2 using Authorization Interface.

Just Instantiate an object of Magento\Framework\AuthorizationInterface to the __construct() method of the Class.

Example to check the user has Catalog Access Permission or not,

Leave a Reply