July 2017
Intermediate to advanced
456 pages
11h 32m
English
To add a permission to a specific role, we need to know what the permission is called, the name of the role, and the drush role-add-perm command. Sometimes, knowing what permission is called may be tricky. In those cases, we can always use the Drupal Admin UI to navigate to the Permissions page to get a better idea of what a permission may be called.
For example, if we want to allow the developer role to administer comment types and settings, that would equate it to 'administer comment types'. Knowing this information, we can open a terminal window and enter the following command:
drush role-add-perm developer 'administer comment types'
To verify that our developer role has the new permission we just assigned, we can ...
Read now
Unlock full access