Markus Lanthaler wrote:
Hi,
to finish my OpenID authentication project I have to little questions :-)
I created an action AttachOpenIdAction which is used to attach an OpenID to
an already existing user account (see
http://jira.xwiki.org/jira/browse/XWIKI-2588). Now I have two questions:
1. How can I add a button to the users profile page where "Change your
password", "Modify your profile", .. is. I found no template or action.
The user profile is actually in a wiki page, XWiki.XWikiUserSheet . You
just have to edit that file. The source is at
.../trunks/applications/administration/src/main/resources/XWiki/XWikiUserSheet.xml
2. How can I set the permissions for that action.
Currently it requires
Admin rights to be executed.
What exactly will happen when you click that button? What kind of code
is executed (Java, velocity)? On the user profile page, you can hide the
button like this:
#if ($hasadmin || $context.user == $doc.fullName)
## display button
#end
but you still need to check rights in the action's code.
Thank you very much
Have a nice weekend,
Markus
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Sergiu Dumitriu
http://purl.org/net/sergiu/