Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-30356

permissions are not set when $theme.language() is used

    Details

    • Fix Priority:
      3

      Description

      When language portlet is included in the theme template by using any of $theme.language() methods, regular user can not change the language until administrator does it first in the page. This seems to be happening because permissions for language portlet in particular page are not yet set, and when it is used by regular user language change fails. When administrator changes locale for the first time in the page only then permissions for language portlet in that page are added, after that regular user can change the language as well.

      As a workaround $theme.runtime() method can be used to include language portlet in theme template. If $theme.runtime is used permissions for language portlet are set when page is loaded so regular user is able to change the language.

      Steps to reproduce:
      1. Include language portlet in the theme template using $theme.language();
      2. Create new page as administrator;
      3. Go to newly created page as regular user;
      4. Try to change language and it doesn't work.

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            stancis Marius (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 14 weeks, 4 days ago

                Packages

                Version Package