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

Don't display the "Create a new wiki" link for users without the right to create a wiki

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 6.3-milestone-1
    • 6.2.1
    • None
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      1. Login with a normal (non Admin) user
      2. Create a new page and use
        {{wikis/}}
        

        as its content

      Notice you also have a link to "Create a new wiki", but if you click on it and fill in the required fields on the 2 wizard steps, you'll eventually get an error similar to this one:

      Wiki "test" creation failed: org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [createwiki] access to [Wiki xwiki] for user [xwiki:XWiki.manuel].
      

      In the UI you don't have a link to Add a new wiki unless you have the "createwiki" right.

      Attachments

        1. Add - Admin.png
          10 kB
          Manuel Smeria
        2. Add - Normal User.png
          9 kB
          Manuel Smeria
        3. Wikis Macro.png
          1 kB
          Manuel Smeria

        Activity

          People

            vrachieru Victor Rachieru
            msmeria Manuel Smeria
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: