Re: [xwiki-users] How to avoid not viewable documents in livetable?

2013-11-08 Thread Valdis Vītoliņš
Thanks, Sergiu! Can you point out, where should I look, to implement it in more appropriate way? Valdis > Sorry Valdis, but this won't fix the problem nicely, since it breaks the > livetable paging. You'll only get the items that are public from a > specific page, but the results are split into p

Re: [xwiki-users] How to avoid not viewable documents in livetable?

2013-11-07 Thread Sergiu Dumitriu
Sorry Valdis, but this won't fix the problem nicely, since it breaks the livetable paging. You'll only get the items that are public from a specific page, but the results are split into pages regardless of their access, so in the end you might see 15/15 items, or 10/15 items, or just an empty page

Re: [xwiki-users] How to avoid not viewable documents in livetable?

2013-11-07 Thread Valdis Vītoliņš
Got it right with /xwiki/bin/view/XWiki/LiveTableResultsMacros changing to following (diff lines): 190 - #gridresult_buildRowJSON($item $rows) 190 + #if($xwiki.getDocument($item).hasAccessLevel('view')) 191 + #gridresult_buildRowJSON($item $rows) 192 + #end http://jira.xwiki.org/browse/XWIKI-9649

[xwiki-users] How to avoid not viewable documents in livetable?

2013-11-07 Thread Valdis Vītoliņš
I have the same kind of objects: part of them are publicly available, but others ar private. Using Livetable macro, for anonymous user it shows entries with documents (without hyperlinks), which actually are not accessible. With note under table: (*) Some documents require special rights to be vie