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

Display the "Create a new space" link for users with the right to create a space

    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. Use the Add menu to create a new space
      3. Check the Spaces macro from the homepage -> there's no button to create a new space even if you have this right

      This issue can be fixed by changing the code from the Spaces macro (http://localhost:8080/xwiki/bin/edit/Main/Spaces?editor=object&classname=XWiki.WikiMacroClass&object=0) where the rule for the button to appear is "## Only if the current user has admin rights and the current action is not inline.".

      We need to change this as it's possible for an user to have the right to create a space without being an Admin.

      Attachments

        1. Add - Normal User.png
          9 kB
          Manuel Smeria
        2. Spaces - Admin.png
          5 kB
          Manuel Smeria
        3. Spaces - Normal User.png
          3 kB
          Manuel Smeria

        Activity

          People

            msmeria Manuel Smeria
            msmeria Manuel Smeria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: