Affects Version/s: 6.1.1 CE GA2, 6.2.0 CE M4
Fix Version/s: None
Environment:GNU/Linux 64 bits
Similar Issues:Show 5 results
LPS-8775 $theme.language() causes NullPointerException LPS-45280 Can not change language using $theme.language() LPS-28909 Portlet permission settings not working LPS-30731 IE < 10 throws Permission Denied error when we try to close Manage/Site settings using Cancel button LPS-24606 Document library permissions not working as expected when using shortcuts
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.