Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-1293

The document translations dropdown shows to add translations although root folders are restricted for the user

    XMLWordPrintable

Details

    Description

      In the document view, the translations dropdown shows options to add translations if they don't exist yet, based on the couplings of the root folders.

      But if access to those coupled root folders have been restricted for the logged in user using domains, these options should be hidden. When the option is used, a dialog shows, titled 'Exception', with "Unable to find root folder for language nl" and 'An error occurred, please retry.' It's more logical if the option would not show.

      In code, I traced it down to the call
      available = new HippoTranslatedNode(highestTranslatedNode).getTranslations(); in org.hippoecm.repository.translation.impl.TranslationWorkflowImpl#hints, and then to
      org.hippoecm.repository.translation.HippoTranslatedNode#getTranslations in which a query to find coupled root nodes is used with a workflowuser session (rootSubject) and not the logged-in user session (userSubject).

      Because the workflow user is used, all coupled root folders are found.

      Reproduction:
      I added two quick and dirty domain overrides for a 7.8 archetype.
      Then create a coupled root folder as admin, the author should not see that.
      Please also empty property /hippo:configuration/hippo:frontend/login/login/loginPage/cms.privileges to keep access as author.

      Attachments

        1. REPO_1293.png
          REPO_1293.png
          58 kB
        2. hippodocuments.xml
          4 kB
        3. hippofolders.xml
          4 kB

        Issue Links

          Activity

            People

              pgupta Pankaj Gupta (Inactive)
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: