Permissions API (Drupal)
Naar navigatie springen
Naar zoeken springen
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
In Drupal 6 kun je van origine niet met Drush gebruikerspermissies configureren. Dat schijnt wel te kunnen met de Permissions API. Installatie:
drush en -y permissions_api
Beheerder moet alles kunnen
En dat kan:
drush perm-grant --all-modules --roles="Beheerder"
drush perm-grant --help
Grant permissions to a role. Voorbeelden: drush perm-grant --roles="Admin" Grant all permissions provided by the Node module to the Admin --modules="node" role. drush perm-grant --all-modules Grant all permissions to Admin role. --roles-="Admin" drush perm-grant --roles="Editor,Copy Grant "administer nodes" to Editor and Copy Editor roles. Editor" --permissions="administer nodes" drush perm-grant --all-roles Grant "administer nodes" permission to all roles. --permissions="administer nodes" Opties: --all-modules Grant all defined permissions to a role or roles. --all-roles Grant the permissions to all defined roles. --modules Comma-separated list of modules providing permissions to grant. --permissions Comma-separated list of permissions to grant to a role or roles. --roles Comma-separated list of roles to grant permissions to.