Hi,
I'm using livetable component with the _actions column and noticed a peculiar behavior
depending on the user
rights.
When user doesn't have admin right for the space which contain the table and
displaying objects the _actions
column disappears from the table but still user is able to edit/delete the pages displayed
by the livetable
( using the xwiki menus ).
When I grant him admin right the column appears.
My code is:
#set($columns =
["a","b","c","d","_actions"])
#set($columnsProperties = {
"a" : { "displayName" : "A", "type" :
"text" },
"b" : { "type" : "text", "link" :
"view", "html" : "true", "sortable":true,
"displayName" : "B" },
"c" : { "displayName" : "C", "type" :
"text" },
"d" : { "displayName" : "D", "type" :
"text" },
"_actions" : {"actions": ["edit","delete"],
"displayName" : "E"}
})
#set($options = {
"resultPage":"IPR.IPREntryClassJSON",
"rowCount": 20
})
#livetable("userdirectory1" $columns $columnsProperties $options)
In my opinion, there is an inconsistency in the livetable behavior. I can edit/delete my
document manually
but livetable prevents from displaying the action column at the same time with the same
privileges for the
user.
Any thoughts on that ?
Thanks,
Piotr