README.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. VERSION: 7.x-1.x development build
  2. OVERVIEW
  3. --------
  4. Tac_lite stands for Taxonomy Access Control Lite. This module
  5. grants access so that some users may see content that is
  6. hidden from others. A simple scheme based on taxonomy, roles and
  7. users controls which content is hidden.
  8. Bear in mind that, like all modules which use Drupal's built-in
  9. node_access features, this module does not prevent users from
  10. viewing/editing nodes which Drupal's permission allow them to
  11. view/edit. To use, configure Drupal to not grant the permission, then
  12. configure tac_lite to grant it.
  13. As the name implies, this module shares some functionality with an
  14. earlier module called Taxonomy Access Control (TAC). If you are
  15. shopping around for an access control module to use, consider that one
  16. as you may find that it suits your needs. In my case, I wanted access
  17. control but without some of the complexity introduced by TAC. I also
  18. wanted more flexibility in granting access on a per user basis.
  19. Here are some key features of tac_lite:
  20. * Designed to be as simple as possible in installation and administration.
  21. * Uses Drupal's node_access hooks and taxonomy module to leave the
  22. smallest possible footprint while doing it's job. For example, it
  23. introduces no new database tables.
  24. * Grant permissions based on roles.
  25. * Grant permissions per user. (Give a specific user access beyond
  26. what his/her roles allow).
  27. * Supports view, update and delete permissions.
  28. USE CASE
  29. --------
  30. Here's how I originally used this module. This description might make
  31. it easier to understand why one might prefer tac_lite over TAC.
  32. My website helps me manage my work projects. I use Drupal's project
  33. module to track issues. Some of my projects are for the public to see
  34. (i.e. Drupal modules) others are limited to my clients and partners.
  35. These restricted projects should be visible only to me, the client in
  36. question, and partner(s) working on that particular project.
  37. I've defined a vocabulary for my projects (same one used by
  38. project.module) and I've defined a client role and a partner role.
  39. Partners can contribute to the website, while clients can read content
  40. but post only issues.
  41. Using TAC (or as far as I know all other access control modules) I
  42. would have to create a new role for each project/role combination.
  43. That is, for the Acme project I'd have to create roles 'Acme Client'
  44. and 'Acme Partner' in order to assign permissions just the way I want
  45. them.
  46. Using tac_lite, I simply associate each user with the project(s) they
  47. are allowed to see. That is, I associate some clients and some
  48. partners with Acme. Their role (client or partner) controls what they
  49. can do, and the associations through tac_lite control what they can
  50. see.
  51. INSTALL
  52. -------
  53. Enable taxonomy module. It's required.
  54. Install this package the normal way.
  55. - put this file in a subdirectory of the modules directory.
  56. - enable using admin interface
  57. - no database tables to install.
  58. USAGE
  59. -----
  60. Log in as an administrator. (uid==1, or a user with
  61. administer_tac_lite permission)
  62. Create a vocabulary which you will use to categorize private nodes.
  63. You may want to create a vocabulary called "Privacy" with terms like
  64. "public", "private", and "administers only".
  65. Associate the vocabulary with node types, as you would normally do.
  66. Go to administer >> user management >> access control >> access
  67. control by taxonomy.
  68. Select the category you created in the earlier step ("Privacy").
  69. Create some content. Choose a node type you've associated with "Privacy".
  70. Note that you can view the content you just created. Other users cannot.
  71. Edit the account of another user. Go to the tac_lite access tab under edit.
  72. Select a term you selected when creating the node and submit changes.
  73. Now the user can also access the node you created.
  74. NOTES
  75. -----
  76. If behavior of this or any other access control module seems to be
  77. incorrect, try rebuilding the node access table. This may be done
  78. under administer >> content management >> post settings. There is a
  79. button there labelled "rebuild permissions"
  80. Another useful tool is a sub-module of the devel module, called
  81. devel_node_access which can give you some insight into the contents of
  82. your node_access table. Recommended for troubleshooting.
  83. AUTHOR
  84. ------
  85. Dave Cohen <http://drupal.org/user/18468>
  86. http://www.dave-cohen.com