Wiki source code of Access Rights

Version 5.2 by Ecaterina Moraru (Valica) on 2010/02/19

Show last authors
1
2 1 Access Rights
3
4 This page aims at explaining how access rights work in XWiki. It will help you configure access rights on your wiki so that every user can only see and do what he should be allowed to.
5
6 1.1 An overview of rights
7
8 Here is a lists of all the rights available in XWiki Enterprise and their default setting.
9
10 * ~~*Right name:* brief description of the right~~
11 ** ~~Availability: at what level can you set this right?~~
12 *** ~~Page: this right can be set at the page level~~
13 *** ~~Space: this right can be set at the space level~~
14 *** ~~Wiki: this right can be set at the wiki level~~
15 ** ~~Default status: is the right allowed or denied when the checkbox is left blank?~~
16 *** ~~ALLOWED: this means that users CAN perform the given action if no other right is set~~
17 *** ~~DENIED: this means that users CANNOT perform the given action if no other right is set~~
18 ** ~~Priority order: which setting wins over another if an user has 2 different settings?~~
19 ** ~~Checking order: at what level is the right checked first?~~
20
21 * *View:* whether users can see the page
22 ** Availability:
23 *** Page
24 *** Space
25 *** Wiki
26 ** Default status: ALLOWED
27 ** Priority order: deny > allow > no setting
28 ** Checking order: page > space > wiki
29
30 * *Comment:* whether users can add a comment to the page
31 ** Availability:
32 *** Page
33 *** Space
34 *** Wiki
35 ** Default status: ALLOWED
36 ** Priority order: deny > allow > no setting
37 ** Checking order: page > space > wiki
38
39 * *Edit:* whether users can edit and save modifications to the page
40 ** Availability:
41 *** Page
42 *** Space
43 *** Wiki
44 ** Default status: ALLOWED
45 ** Priority order: deny > allow > no setting
46 ** Checking order: page > space > wiki
47
48 * *Delete:* whether users can delete the page
49 ** Availability:
50 *** Page
51 *** Space
52 *** Wiki
53 ** Default status: DENIED (unless you're the document creator)
54 ** Priority order: deny > allow > no setting
55 ** Checking order: page > space > wiki
56
57 * *Admin:* whether users can manage administration settings for the space / wiki
58 ** Availability:
59 *** Space (Automatically includes the view, comment, edit, delete rights)
60 *** Wiki (Automatically includes the view, comment, edit, delete, register, program rights)
61 ** Default status: ALLOWED
62 ** Priority order: allow > deny > no setting
63 ** Checking order: wiki > space
64
65 * *Register:* whether users can create new user accounts
66 ** Availability:
67 *** Wiki
68 ** Default status: ALLOWED
69 ** Priority order: allow > deny > no setting
70 ** Checking order: wiki
71
72 * *Program:* whether users can use protected APIs & Groovy code in wiki pages
73 ** Availability:
74 *** Wiki
75 ** Default status: DENIED
76 ** Priority order: allow > deny > no setting
77 ** Checking order: wiki
78
79 1.1 Execution order
80
81 [The full answer lies in the code.>http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/XWikiRightServiceImpl.java]

Get Connected