In the previous recipes, we created a backend controller action to which you can navigate. However, when you want to configure a custom admin role, you can't restrict the access to this page for a specific role. In this recipe, we will create an ACL (Access Control List) for our backend page and configure a role with restricted access to this page.
Every admin user has a role. These roles contain access permissions, so you can restrict access to some user roles. In this recipe, we will add an extra permission to the roles so that we can configure the access for our previously created page.
The following steps show you how you can restrict the access to a backend page for specific users:
The first thing we have to do is to check which ACLs are available. To know this, we can run the following command:
wiz admin-resources
Or, we can navigate to the Roles page in the backend. This is located in System | Permissions | Roles. Click on Add new role and open...