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

    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. 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

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

              Dates

              • Created:
                Updated:
                Resolved: