Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.2.X, 7.3.X, Master
-
7.3.x, 7.2.x
-
Committed
-
3
Description
Reproduction Steps
1. Add a Regular Role "Role A", 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", assign the "Role A" to this user.
3. Log in Liferay with "User A", go to Control Panel, click the "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.
Reproduced in
7.3.x: 70931fa9fa2e25ab5345768f5dbd68aed046272b
Master:7985dd55f78d0b4e4960d1b8b07158787e32d29f