Wiki source code of Access Rights

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

Hide last authors
Guillaume Lerouge 1.1 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
Guillaume Lerouge 3.1 8 Here is a lists of all the rights available in XWiki Enterprise and their default setting.
Guillaume Lerouge 1.1 9
10 * ~~*Right name:* brief description of the right~~
Guillaume Lerouge 3.1 11 ** ~~Availability: at what level can you set this right?~~
Guillaume Lerouge 1.1 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~~
Guillaume Lerouge 3.1 15 ** ~~Default status: is the right allowed or denied when the checkbox is left blank?~~
Guillaume Lerouge 1.1 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~~
Guillaume Lerouge 3.1 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?~~
Guillaume Lerouge 2.1 20
Guillaume Lerouge 1.1 21 * *View:* whether users can see the page
Guillaume Lerouge 3.1 22 ** Availability:
23 *** Page
24 *** Space
25 *** Wiki
Guillaume Lerouge 1.1 26 ** Default status: ALLOWED
Guillaume Lerouge 2.1 27 ** Priority order: deny > allow > no setting
Guillaume Lerouge 3.1 28 ** Checking order: page > space > wiki
Guillaume Lerouge 2.1 29
Guillaume Lerouge 1.1 30 * *Comment:* whether users can add a comment to the page
Guillaume Lerouge 3.1 31 ** Availability:
32 *** Page
33 *** Space
34 *** Wiki
Guillaume Lerouge 1.1 35 ** Default status: ALLOWED
Guillaume Lerouge 2.1 36 ** Priority order: deny > allow > no setting
Guillaume Lerouge 3.1 37 ** Checking order: page > space > wiki
Guillaume Lerouge 2.1 38
Guillaume Lerouge 1.1 39 * *Edit:* whether users can edit and save modifications to the page
Guillaume Lerouge 3.1 40 ** Availability:
41 *** Page
42 *** Space
43 *** Wiki
Guillaume Lerouge 1.1 44 ** Default status: ALLOWED
Guillaume Lerouge 2.1 45 ** Priority order: deny > allow > no setting
Guillaume Lerouge 3.1 46 ** Checking order: page > space > wiki
Guillaume Lerouge 2.1 47
Guillaume Lerouge 1.1 48 * *Delete:* whether users can delete the page
Guillaume Lerouge 3.1 49 ** Availability:
50 *** Page
51 *** Space
52 *** Wiki
Guillaume Lerouge 2.1 53 ** Default status: DENIED (unless you're the document creator)
54 ** Priority order: deny > allow > no setting
Guillaume Lerouge 3.1 55 ** Checking order: page > space > wiki
Guillaume Lerouge 2.1 56
Guillaume Lerouge 1.1 57 * *Admin:* whether users can manage administration settings for the space / wiki
Guillaume Lerouge 3.1 58 ** Availability:
59 *** Space (Automatically includes the view, comment, edit, delete rights)
60 *** Wiki (Automatically includes the view, comment, edit, delete, register, program rights)
Guillaume Lerouge 2.1 61 ** Default status: ALLOWED
62 ** Priority order: allow > deny > no setting
Guillaume Lerouge 3.1 63 ** Checking order: wiki > space
Guillaume Lerouge 2.1 64
Guillaume Lerouge 1.1 65 * *Register:* whether users can create new user accounts
Guillaume Lerouge 3.1 66 ** Availability:
67 *** Wiki
Guillaume Lerouge 1.1 68 ** Default status: ALLOWED
Guillaume Lerouge 2.1 69 ** Priority order: allow > deny > no setting
Guillaume Lerouge 3.1 70 ** Checking order: wiki
Guillaume Lerouge 2.1 71
Guillaume Lerouge 1.1 72 * *Program:* whether users can use protected APIs & Groovy code in wiki pages
Guillaume Lerouge 3.1 73 ** Availability:
74 *** Wiki
Guillaume Lerouge 1.1 75 ** Default status: DENIED
Guillaume Lerouge 2.1 76 ** Priority order: allow > deny > no setting
Guillaume Lerouge 3.1 77 ** Checking order: wiki
Guillaume Lerouge 2.1 78
Guillaume Lerouge 3.1 79 1.1 Execution order
Guillaume Lerouge 2.1 80
Guillaume Lerouge 5.1 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