[xwiki-users] fix for CheckRights
Hi again, I really like the CheckRights tool in the Admin Tool http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools However, it doesn't have the ability to check the rights of the Unregistered User. Can someone please help me to tweak the code so that it can check the rights? thanks Paul
On 1 July 2011 07:28, Paul Harris <[email protected]> wrote:
Hi again,
I really like the CheckRights tool in the Admin Tool http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools
However, it doesn't have the ability to check the rights of the Unregistered User.
Can someone please help me to tweak the code so that it can check the rights?
thanks Paul
I think I figured it out... I edited the page and added a line: println "<select name='user'>" ADD -- println "<option value='XWiki.XWikiGuest'>XWikiGuest (unregistered user)</option>" for (item in xwiki.searchDocuments(sql)) { def username = xwiki.getUserName(item, false) println "<option value='${item}'>${username}</option>" } println "</select>" Can I get this checked and updated in the extension?
On Fri, Jul 1, 2011 at 01:47, Paul Harris <[email protected]> wrote:
On 1 July 2011 07:28, Paul Harris <[email protected]> wrote:
Hi again,
I really like the CheckRights tool in the Admin Tool http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools
However, it doesn't have the ability to check the rights of the Unregistered User.
Can someone please help me to tweak the code so that it can check the rights?
thanks Paul
I think I figured it out... I edited the page and added a line:
println "<select name='user'>" ADD -- println "<option value='XWiki.XWikiGuest'>XWikiGuest (unregistered user)</option>" for (item in xwiki.searchDocuments(sql)) { def username = xwiki.getUserName(item, false) println "<option value='${item}'>${username}</option>" } println "</select>"
Can I get this checked and updated in the extension?
The quickest way to get you modification added is to contribute directly on https://github.com/xwiki-contrib/application-admintools since that's where sources are located. For that you need to create a github account, fork application-admintools repository and when you are done modifying it do a pull request.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (2)
-
Paul Harris -
Thomas Mortagne