Hi Caleb,

I do not understand why the view is not allowed.
XWiki.Preference is/was explicitly allowed for view of XWikiAllGroup.

I checked the Registration document and detected, that there is a createUser 
call. I found out, that there is an overload version of this call allowing to 
specify initial rights.
I changed that but it does not work at the first time because the Registration 
document was not accessable for new users, and somehow a fallback version was 
used.
However, after changing rights I configured successfully my XWiki to set "view 
and edit" for new registered users.

Thank you for the tip

Stefan Bachert







________________________________
Von: Caleb James DeLisle <[email protected]>
An: XWiki Users <[email protected]>
Gesendet: Donnerstag, den 18. März 2010, 3:34:24 Uhr
Betreff: Re: [xwiki-users] Registration

I don't think the view access is denied by default, maybe you disabled access 
to XWikiAllGroup for
viewing the XWiki space?

If you want to do specific things to each user after they are registered and it 
is acceptable to save
the registration page with programming access, you can add an attribute to one 
of the fields called
doAfterRegistration. I think the registration page has an example of this in 
the favorite color field
which is commented out and for example purposes. You need not worry which field 
you attach the attribute
to since "doAfterRegistration" is generic in nature. You do however have to use 
saveWithProgrammingRights
because the save function only saves if the viewer has access to edit the page 
(they don't because they are
not logged in yet.)

You may try invoking the include macro to see if you are able to execute a 
special page with programming
rights while the registration page does not have them (I'm not sure if this is 
possible anymore)

Caleb


stefan bachert wrote:
> Hi,
> 
> is there a way to configure the rights of a registered user?
> 
> In my xwiki a newly registered user has the right to EDIT on his own 
> user-document.
> However, the rights do not allow them to "view" it. So the user could NOT 
> view his own user-document.
> The user can call /bin/edit/... this works, but this could not expected from 
> a new user
> 
> When I explicitly give view access, everything works fine.
> 
> Stefan Bachert
> 
> __________________________________________________
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
> gegen Massenmails. 
> http://mail.yahoo.com 
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
> 

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users


__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to