PermissionsEnumerable
The PermissionsEnumerable extension provides role-based access control: you can create roles and write custom logic in your smart contract that depends on whether a given wallet holds a given role.
The Enumerable part provides the capability to view all the addresses holding a specific role.
View on GitHub
This is an example smart contract demonstrating how to inherit from this extension and override the functions to add (optional) custom functionality.
None of the base contracts implement this extension.
PermissionsEnumerable inherits from the Permissions extension so includes
all of the functions in that extension. It also includes the following functions: