-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X EE, Master
-
Fix Version/s: 7.0.0 DXP FP13, 7.0.0 DXP SP3, 7.0.3 CE GA4, 7.0.X EE, 7.1.X, Master
-
Component/s: WCM, WCM > Product Menu
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
-
Git Pull Request:
Issue
For a regular Site Member user, Default Scope is displayed in the Product Menu under the Go to Site link
Steps to reproduce
1. Start up master.
2. Sign in as test@liferay.com
3. On the Liferay DXP site add a Web Content Display portlet to the Welcome page's layout
4. Enter the WCD portlet's Configuration > Scope > Scope Dropdown: Welcome (Create New)
5. Save the settings
6. On the Product Menu, click Liferay DXP (site) > Content, and assert that Default Scope is displayed.
7. Go into Users > Roles > Regular Roles > User > Click the tricolon/options button > Define Permissions
8. In Define Permissions for User, in the tree go to Site Administration > Configuration > Site Settings
9. Find the permission called View Site Administration Menu, and add it to the role, then save
10. Create a new user, and grant the user Site Membership in Liferay DXP site
11. Sign in as the new user
12. While you are in the Liferay DXP site, Click the Product Menu
Actual results
Assert that with the "View Site Administration Menu" permission, all users (despite their role) has the ability to see Default Scope in the product menu. And the error printed. (NPE thrown)
Expected results
Default Scope is not displayed, since it should be nested under "Content", and "Content" should only be visible if user has permissions to view.