LPS-41026 (LPS-39735 part 2)

Hi Brian,

this is second commit from the bundle. I created a separate ticket for this, as you suggested in https://github.com/brianchandotcom/liferay-portal/pull/14460.

The idea here is again to check permissions before creating portlet preferences.

Thanks.