Open generator
What is?
https://agaric.coop/blog/create-and-use-custom-permission-your-module
The process for checking permissions is simply to use a user object in your code.
How to use?
Use the hasPermission() method which returns TRUE if that user has permission and FALSE if not. Uset this method, for example, in a hook.
Used template: https://github.com/Chi-teck/drupal-code-generator/blob/master/templates…
Technology