Issue
Reproduction Steps
1. Add a Regular Role "Role A", and grant this role the following permission
App Manager: Access in Control Panel App Manager: Configuration App Manager: Permissions App Manager: Preferences App Manager: View Instance Settings: Access in Control Panel Instance Settings: Configuration Instance Settings: Permissions Instance Settings: Preferences Instance Settings: View Portal: View Control Panel Menu Purchased > Apps: Access in Control Panel Purchased > Apps: Configuration Purchased > Apps: Permissions Purchased > Apps: View
2. Create a new User "User A", and assign "Role A" to this user.
3. Log in to Liferay with "User A", go to Control Panel, click "Instance Settings",
Result: Got the error on UI "Portlet is temporarily unavailable", meanwhile, the following error can be observed in the log.
2021-03-01 08:04:21.227 ERROR [http-nio-8080-exec-7][render_portlet_jsp:131] null
com.liferay.portal.kernel.security.auth.PrincipalException$MustBeCompanyAdmin: User 42204 must be the company administrator to perform the action
4. Click "App Manager", the same result as step 4 can be observed.
Environment
- Liferay DXP 7.3
Resolution
- The user should have an Administrative role in order to access Instance Settings.
- The observed behavior is a known issue/bug and has been fixed in liferay-fix-pack-dxp-2 and above.
- If a hotfix is required for this issue, please create a support ticket requesting a hotfix by attaching patch details.
- Installing Fix Packs and Hotfixes on Liferay DXP will guide you to install this hotfix in the respective environment.