Hello, after playing around with the live table results macro, I found
that if a user does not have full wiki admin access, but only is an
admin of a Space, the links in the Actions column are not displayed.
I was hoping to create a Live Table page for a space so users could
see a space index with easy to use links for actions to perform on
each document in that space. (ie: links to: copy, delete, rename,
rights )
This is contrary to what I'd expect to happen. If I give the user
admin access to the entire wiki, then it displays correctly.
To reproduce:
1) Create a space index page with the following velocity code (replace
__SPACENAME__ with the name of the space):
--------------------------------------------------
{{velocity}}
#set($collist = ["doc.name", "doc.space","doc.date",
"doc.author", "_actions"])
#set($colprops = {
"doc.name" : { "type" : "text" ,
"size" : 30,
"link" : "view"},
"doc.space" : { "type" : "text",
"link" : "space",
"filterable" : "false" },
"doc.date" : { "type" : "date" },
"doc.author" : { "type" : "text",
"link" : "author"},
"_actions" : {"actions":
["copy","delete","rename","rights"]}
})
#set($options = { "topFilters":'<input type="hidden"
title="Filter On
Space" size="${colprop.size}" name="doc.space"
id="xwiki-livetable-allsoftwaredocs-filter-5" value="__SPACENAME__"
/>',
"translationPrefix" : "xe.index.",
"rowCount": 15 })
#livetable("allsoftwaredocs" $collist $colprops $options)
{{/velocity}}
--------------------------------------------------
2) Give a normal user Admin priveleges in that space
3) View page as the Wiki Admin user to see the links displayed in the
"Actions" column
4) View page as the user you just gave Admin within the space to see
the column show up, but no links in it!
Cheers,
- James Cuzella