Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9649

Don't display not viewable documents in livetable

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 4.5.4, 5.1
    • LiveTable
    • Very hard

    Description

      I have the same kind of objects: part of them are publicly available,
      but others are 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 viewed

      To avoid this, /xwiki/bin/view/XWiki/LiveTableResultsMacros
      should be changed to following (diff lines):

      190 	- #gridresult_buildRowJSON($item $rows)
      190 	+ #if($xwiki.getDocument($item).hasAccessLevel('view'))
      191 	+ #gridresult_buildRowJSON($item $rows)
      192 	+ #end
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              valdisvi Valdis Vitolins
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: