source: sipes/modules_contrib/module_grants/README.txt @ de78188

stableversion-3.0
Last change on this file since de78188 was 177a560, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el directorio de modulos contribuidos de drupal

  • Propiedad mode establecida a 100755
File size: 6.2 KB
Línea 
1
2DESCRIPTION
3===========
4This module gets around two quirks in the 6.x core Node module.
5Currently the Node module:
6- causes access grants to be ignored for unpublished content;
7- ORs together access grants coming from multiple modules; this results
8  in content being made accessible by one module when access had already
9  been restricted by another, which is undesirable in most cases.
10
11The module ensures that access grants are tested for unpublished content just
12as they are for published content, so that using the Workflow module (or any
13other module that uses the node_access table) you can implement workflows that
14deal effectively with content moving from author via moderator to publisher
15BEFORE it is published (which is where it's needed most, once content is
16visible for all to see, it's a bit late to start a publication workflow
17process!).
18Using Taxonomy Access Control (or -Lite) you can restrict access to content
19to user-defined "vocabularies" such as departments or regions. With Module
20Grants this will work for unpublished content just as it does for published
21content.
22Moreover when Workflow and TAC or (TAC-Lite) are used together this module
23makes sure that the combination exhibits the expected behaviour: access is
24granted to content only when it is in the correct state AND of the appropriate
25vocabulary "term" (such as department, country, etc.).
26The module_grants module achieves this by AND-ing rather than OR-ing the grants.
27
28Module Grants comes bundled with Module Grants Monitor (optional), which
29provides users with a new menu item, "Accessible Content" that shows a list of
30all content accessible to the logged-in user based on the permissions and
31access grants as determined by enabled modules. This list may be filtered using
32a double row of tabs residing at the top of the page, see point 3a below.
33
34INSTALLATION AND CONFIGURATION
35==============================
361. Place the "module_grants" folder in your "sites/all/modules" directory.
372. Under Administer >> Site building >> Modules, enable Module Grants and
38   optionally Module Grants Monitor (recommended).
393a Visit Administer >> User management >> Permissions. Make sure that roles
40   that are meant to be able to view unpublished and not yet published content
41   have one of the following permissions:
42   o "view revisions" (section "node module"), or
43   o "view any|all <content-type> content" (section "revisioning module", if
44   Revisioning installed).
45   Make sure that the role of anonymous user does NOT have any of the above
46   permissions.
473b There's usually no need to tick "administer nodes" for any role, which is
48   good because "administer nodes" equates to almost god-like powers that you
49   wouldn't normally give to normal users.
504. If required, install and enable as many modules for content access control
51   as you need for your situation. Typical examples are Taxonomy Access Control
52   (or use TAC Lite) and Workflow.
535. Optional, but highly recommended, especially when using Revisioning. Under
54   Administer >> User management >> Permissions, section "module_grants_monitor
55   module" select for each role which filtering tab they will get to use. The
56   permissions, which are in alphabetical rahter than logical order, relate to
57   two rows of tabs that appear on the 'Accessible content' page.
58   The first row of up to 4 tabs filter content the logged-in user
59     created,
60     modified,
61     can edit,
62     can view
63   The second row of up to 3 tabs further filter content according to it being
64     published,
65     unpublished (includes previously published as well as not yet published)
66     either ("all", that is: no additional filtering)
67
68   NOTE 1: you must tick at least one permission box for each of the 2 rows
69   NOTE 2: these tick boxes only determine whether the role in question gets
70   to see the tabs, they do not in any way affect access to content. So in
71   that sense you can safely tick any or all of the tab boxes for all
72   authenticated users. However you may not want to confuse certain roles
73   with too many tabs and too much output.
74
75USAGE
76=====
77Module Grants Monitor creates a new navigation menu item, 'Accessible content'
78visible to the administrator and to roles to which the administrator granted
79access as per the above section, point 5. The content shown under 'Accessible
80content' reflects the access grants given by modules installed on your system
81to the current user.
82
83You can use Module Grants in combination with TAC or TAC-Lite for fine-grained
84access control based on vocabularies (such as "department") assigned to the
85various content types. You can then create department-specific roles (eg
86Sports Author, Music Author) and enforce that these roles can only access
87content belonging to their departments, whether it's published or not.
88Create your grants "schemes" on this page: Administer >> User management >>
89Access control by taxonmy.
90In addition you may want to install the Workflow module to further segragate
91roles (eg author and moderator) via access control based on states such as
92"in draft", "in review" and "published". See Administer >> Site building >>
93Workflow.
94The module makes sure that access to content is given only when BOTH the
95TAC (Lite) and the Workflow Access modules grant it (as opposed to one OR
96the other).
97
98This module also works well with the Revisioning module for creating effective
99publication workflows operating on published as well as unpublished content
100revisions.
101See the Revisioning project page at http://drupal.org/project/revisioning
102for three step-by-step tutorials.
103
104Be aware that any permissions given in the "node module" section override the
105access grants given by the Workflow and TAC-Lite modules, so you probably only
106want to assign a few creation permissions in the node module and grant
107view, update and delete via TAC/TAC-Lite and/or Workflow.
108
109Additional configuration options are found at Administer >> Site configuration
110>> Module Grants.
111
112API
113===
114Module Grants features one hook, hook_user_node_access($revision_op, $node),
115which module developers may implement to alter or add to the behaviour of
116Module Grants as it determines whether access to a supplied node or revision
117should be granted using the requested operation.
118See the module_grants.api.php file.
119
120AUTHOR
121======
122Rik de Boer, Melbourne, Australia.
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.