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

Cannot use the security script service to check rights at wiki level

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.4-milestone-1
    • 6.3
    • Model
    • None
    • Unit
    • Easy
    • N/A
    • N/A

    Description

      Put this in the content of a wiki page:

      $services.security.authorization.hasAccess('view', 'wiki:xwiki')
      $services.security.authorization.hasAccess('view', 'space:xwiki:Main')
      $services.security.authorization.hasAccess('view', 'xwiki:Main.WebHome')
      

      The first call doesn't work.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: