Wiki source code of Invitation Application

Last modified by Vincent Massol on 2011/03/17 19:40

Show last authors
1 = The Invitation Application allows you to invite your friends to join the wiki =
2 This is an early version to allow you to invite yourself and to help us decide what functionality is most important.
3
4 == Permission ==
5 * Members of the myxwiki.org have permission to access Invitation as an administrator (this allows you to view old messages which other people sent.) or as a user.
6 * Invitation messages do not grant privilege to join the incubator, registration is still closed.
7 * Everyone (even guests) have permission to comment on this page so please write comments and/or send to the mailing list with suggestions, (more) bugs, and desired features.
8 * Everyone except guests can edit this page to modify the todo list.
9
10 == Todo ==
11 * There is no javascript yet. My philosophy is to get basic functionality stable before putting any icing on the cake.
12 ** Use LiveTable (when js is available)
13 *** Allow admins to sort invitations
14 * --Allow inviters to cancel invitations-- **Done**
15 ** Should an email be sent out about cancellation? Would it create too much noise? **Not implemented**
16 * --Invitations which grant privilege to join a closed wiki (and allow the user to bypass the registration captcha).-- **Done**
17 * Invitations grant other privileges such as group membership (Will this be used commonly? Maybe wait on this?)
18 ** Difficult to avoid introducing security issues.
19 * Invitations which last for a given amount of time (for sending to a mailing list.)
20 ** --Time based expiration, expiration after one (or more?) acceptance/denials or both.-- **This doesn't make sense.**
21 * Move old invitations to other document so primary storage document isn't overloaded (Delete old invitations? Is delete anti-wiki?)
22 * Allow users to resend invitations if sending fails or message bounces etc. (Necessary? Dangerous?)
23 ** Have an incoming mail account to detect message bounces? Lots of work involved, something to think about for future.
24 * Allow users to send an invitation but not decide the content (needed?)
25 * --Make templates use localization messages-- **Done**
26 * Support join requests (Easily implemented by allowing registration of users who are disabled by default.)
27 ** Who handles join requests?
28 * Support non-html email clients (how important is this?)
29 * Many bugs to fix and UI sharp edges.
30 * **Help expand this list by commenting!**
31
32 == The application ==
33
34 {{warning}}Since every member of myxwiki.org can use the admin function, they can see what email addresses you wrote to.{{/warning}}
35
36 These two links point to the same application but seen from the point of view of a user or an administrator.
37
38 {{velocity}}
39 * **[[InvitationMail.InvitationUser]]** ##
40 #if(!$xcontext.hasAccessLevel('view', 'InvitationMail.InvitationUser'))
41 {{error}}You do not have permission to use this.{{/error}}##
42 #end
43
44 * **[[InvitationMail.InvitationAdmin]]** ##
45 #if(!$xcontext.hasAccessLevel('view', 'InvitationMail.InvitationAdmin'))
46 {{error}}You do not have permission to use this.{{/error}}##
47 #end
48
49 ## Do a permissions test.
50 #if($request.get('checkperms') == '1')
51 #foreach($docName in $xwiki.searchDocuments('where space = ?', 0,0, [$doc.getSpace()]))
52 * [[$docName]]##
53 #if($xcontext.hasAccessLevel('view', $docName))
54 **VIEW** ##
55 #end
56 #if($xcontext.hasAccessLevel('edit', $docName))
57 **EDIT**##
58 #end
59
60 #end
61 #end
62 {{/velocity}}