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

Show the "Wikis" menu option for the user profile only when the corresponding profile page is present

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 6.4
    • None
    • Unknown

    Description

      In some cases where subwikis are managed without "subwiki membership", e.g. all users can access all subwikis, or in the case that users are not allowed to see subwikis this is managed via access rights by the admins.
      (One example of such a setup is xwiki.org )

      In that case no user is member of any wiki, so the section of the user profile "Wikis" only shows a message "You are not a member of any wiki yet."

      A simple customization in this case would be to delete the page WikiManager.UserWikiSheet - then the "Wiki" section vanishes from the user profile.

      However the menu in the upper right corner still displays "Wikis" as menu point. This is because the menu entry is shown as long as WikiManager.WebHome is available, not WikiManager.UserWikiSheet

      Would it be ok if I change the check for the WikiManager.UserWikiSheet page (this will actually introduce another page access, as the current check just reuses the $isWikiUIAvailable variable from a previous check).
      Or is it better to fix this together with XWIKI-9689 ?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              camil7 Clemens Robbenhaar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: