Projet

Général

Profil

Paste
Télécharger (2,56 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / nodeaccess / README.txt @ 13755f8d

1
Node Access Module
2

    
3
(Hopelessly out of date)
4

    
5
This module allows you to manage permissions for nodes by role and user. In other words,
6
it implements per node access control for users and groups. With this module, you can
7
restrict access to any individual node without having to use taxonomy. You can assign 
8
permission to view, edit or delete each individual node by user or role. Once enabled,
9
a 'grant' tab will appear on node pages. You can click this and assign permissions for 
10
that node.
11

    
12

    
13
INSTALLATION:
14

    
15
Put the module in your drupal modules directory and enable it in admin/modules.
16

    
17
I would strongly recommend backing up your database before installing
18
this module...
19

    
20
IMPORTANT!
21

    
22
Once you check the enable box and submit the page, no nodes will be accessible to anyone
23
other than the admin user. You just set permissions on the nodeaccess settings page 
24
(admin/settings/nodeaccess) to enable access to your site.
25

    
26
The settings page has a section for roles, and then a section for every node type you 
27
have on your site.
28

    
29
ALLOWED ROLES:
30

    
31
The allowed roles section allows you to choose what roles will appear on the node grant
32
tab. Just check each role you want to appear. Note that you can still set defaults for
33
all roles as the admin user, these options just hide what is available on each node
34
page.
35

    
36
NODE TYPE SETTINGS:
37

    
38
For each node type on your site, you can set default role access permissions and choose
39
if the grant tab should be available on that page. If the show grant tab option is 
40
not checked, the grant tab will not appear on the node page regardless of user permissions.
41

    
42
For each node type, you can also choose the default permissions for that type. To emulate 
43
standard drupal permissions, you would give anonymous user and authenticated user view permissions
44
for each node type. Note that once this module is first enabled, no permissions are granted, so
45
it is important to set defaults.
46

    
47
The default permissions for each node type will apply to any node which does not have
48
permissions set, either at the time you submit the settings or when any new node is
49
created. For already existing nodes, the defaults will apply only to those nodes which
50
have not had custom permissions set on the node grants tab. 
51

    
52
TIPS:
53

    
54
If you grant authenticated users edit permission, you cannot revoke that for any user
55
who is a member of authenticated users. For example, if you wanted all users to be able
56
to edit a node except for one user, you cannot do this by granted edit permission to 
57
authenticated users, then adding the user to the node without view permissions. Drupal
58
doesn't let you do that.
59

    
60