If a user has permissions to access only one portlet that requires an implicit main.js file (or if that one is the first visible portlet), trying to go to sites administration may throw some js errors because some scripts are not loaded.
Steps to reproduce:
- Create a role OnlyCategories with the permissions described in the attachment
- Create a user catuser and assign him only to the OnlyCategories role and the Liferay site
- Log in with the user
- Click on Admin > Content
A JS error is thrown in the console, caused by the implicit portlet main.js not being loaded.
The categories portlet to show properly