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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.1
    • Fix Version/s: 6.3-milestone-1
    • Component/s: None
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: