You are here

README.txt in Permissions Lock 8

Same filename and directory in other branches
  1. 7 README.txt
Description
-----------
This module provides the ability to have more fine-grained control over what users with the permission 'administer permissions' can configure.
You can decide which user roles will see a limited permissions table at admin/user/permissions, and who has unrestricted access to it.
The modules allows you to lock certain permissions and / or certain roles. This means that these permissions / roles will not be available for configuration to a user with limited permission configuration rights.

This module could be useful if you want to allow a client to control website permissions for relatively harmless things like posting comments, creating content, administering taxonomy etc..., 
but you don't want the client to have the opportunity to change permissions for things like Views, content types, themes, ...

Installation
------------
1) Place the module folder in your sites/all/modules folder
2) Activate the module via admin/build/modules

Configuration
-------------
1) Optionally, go to admin/user/permissions and configure the permissions:
   - 'manage permission locks': users with this permission set can decide which permissions will be locked for users with limited access to the permission settings.
   - 'manage permissions unrestricted': users without this permission will have no right to configure permissions that are locked, while users with this permission are not restricted.
2) Go to Admin > Users > Permissions and click the tab 'Lock permissions'.
3) On this configuration page, you can decide what users with limited permission configuration rights can and cannot configure.
   You can both choose to lock certain permissions from being configured, as well as disallowing the ability to modify permissions for one or more roles.
4) Users with the 'administer permissions' permission, but without the 'manage permissions unrestricted' permissions, will now see a limited set a of permissions / roles to configure permissions for, based on the 'Lock permissions' settings.

Using hook_permissions_lock
---------------------------
This module supports a hook that lets you set permission locks through other modules. This allows you to specify the lock settings through code rather than through the database.
This could be useful to avoid repetition or migration problems in your projects.

Usage example:

/**
 * Implementation of hook_permissions_lock().
 */
function <modulename>_permissions_lock($type) {
  switch ($type) {
    case 'permission':
      return array('use PHP for block visibility', 'select different theme', 'administer views'); // specify permissions
    break;
    case 'role':
      return array(1, 2); // specify role ids
    break;
  }
}

Author
------
Sven Decabooter (http://drupal.org/user/35369)
The author can be contacted for paid customizations of this module as well as Drupal consulting and development.

File

README.txt
View source
  1. Description
  2. -----------
  3. This module provides the ability to have more fine-grained control over what users with the permission 'administer permissions' can configure.
  4. You can decide which user roles will see a limited permissions table at admin/user/permissions, and who has unrestricted access to it.
  5. The modules allows you to lock certain permissions and / or certain roles. This means that these permissions / roles will not be available for configuration to a user with limited permission configuration rights.
  6. This module could be useful if you want to allow a client to control website permissions for relatively harmless things like posting comments, creating content, administering taxonomy etc...,
  7. but you don't want the client to have the opportunity to change permissions for things like Views, content types, themes, ...
  8. Installation
  9. ------------
  10. 1) Place the module folder in your sites/all/modules folder
  11. 2) Activate the module via admin/build/modules
  12. Configuration
  13. -------------
  14. 1) Optionally, go to admin/user/permissions and configure the permissions:
  15. - 'manage permission locks': users with this permission set can decide which permissions will be locked for users with limited access to the permission settings.
  16. - 'manage permissions unrestricted': users without this permission will have no right to configure permissions that are locked, while users with this permission are not restricted.
  17. 2) Go to Admin > Users > Permissions and click the tab 'Lock permissions'.
  18. 3) On this configuration page, you can decide what users with limited permission configuration rights can and cannot configure.
  19. You can both choose to lock certain permissions from being configured, as well as disallowing the ability to modify permissions for one or more roles.
  20. 4) Users with the 'administer permissions' permission, but without the 'manage permissions unrestricted' permissions, will now see a limited set a of permissions / roles to configure permissions for, based on the 'Lock permissions' settings.
  21. Using hook_permissions_lock
  22. ---------------------------
  23. This module supports a hook that lets you set permission locks through other modules. This allows you to specify the lock settings through code rather than through the database.
  24. This could be useful to avoid repetition or migration problems in your projects.
  25. Usage example:
  26. /**
  27. * Implementation of hook_permissions_lock().
  28. */
  29. function _permissions_lock($type) {
  30. switch ($type) {
  31. case 'permission':
  32. return array('use PHP for block visibility', 'select different theme', 'administer views'); // specify permissions
  33. break;
  34. case 'role':
  35. return array(1, 2); // specify role ids
  36. break;
  37. }
  38. }
  39. Author
  40. ------
  41. Sven Decabooter (http://drupal.org/user/35369)
  42. The author can be contacted for paid customizations of this module as well as Drupal consulting and development.