Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
2.24.12
-
None
-
0.5
-
Tiger Sprint 112, Tiger Sprint 113
Description
Please forward port REPO-1303 from branch to trunk
Clone 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.
Attachments
Issue Links
- is a forward port of
-
REPO-1293 The document translations dropdown shows to add translations although root folders are restricted for the user
- Closed
-
REPO-1302 [Forward 7.9] constrain document translation with security domain (automatically derived from user session)
- Closed
-
REPO-1303 [Forward port to 10] constrain document translation with security domain (automatically derived from user session)
- Closed