Hi Piotr,
On Thu, Feb 3, 2011 at 13:30, Piotr Dziubecki<deepres(a)man.poznan.pl> wrote:
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 ?
I think that unfortunately, the current behavior is hardcoded in the
livetable (only show the "actions" column for admin users). A dev might be
able to look at it and fix it. Please open a JIRA to report this.
Guillaume