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

Don't display not viewable documents in livetable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.5.4, 5.1
    • Fix Version/s: None
    • Component/s: LiveTable
    • Labels:
    • Difficulty:
      Very hard
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Date of First Response: