Hi all,
I was recently helping a customer who was trying to create a custom permission in their plugin with the intention that this permission be visible in the UI when creating a new role under Administration > Roles.
I have created a working implementation of how to add custom permissions via the Plugin API (I wrote something quite groovy):
Note:
The new permission shows up under the ‘Uncategorized Permissions’ section when you create a new role (or view an existing one) in the UI. It looks like it is possible to specify a subcategory but I still need to test if/how this works.
Enjoy!