Radek Rekas wrote:
Hi,
I'd like to use the Grid/LiveTable components to list data and create links to edit
pages for that data. I would also like to add restrictions so that only users who created
that data can edit it.
Hi,
You can display easily your wiki pages using the live table and
configure the data source to match your needs.
My suggestion would be to modify the creation step for any wiki page
that you want to list in your live table. Just attach an
XWiki.XWikiRights object and set the edit rights only for the current
user(which is also the document creator) when creating the new page.
You can find a useful code snippet here:
http://code.xwiki.org/xwiki/bin/view/Snippets/SettingRightsSnippet
Hope this helps,
Oana
From my understanding it is not possible to restrict
edits for individual xwiki class objects to only users who created that object (along with
an administrator user) as edit permissions can only be set at the page level and not at
the individual object level.
The solution I was thinking about was to create a new page for each record then restrict
edit permissions at the page level.
This would however require me to aggregate all of the xwiki class objects on a single
page so that they could be used with the grid/LiveTable component. I can't however see
a way of doing this. Is this possible or is there a better way of doing this?
Thanks in advance,
Radek
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users