[TECHNICAL SUPPORT] LPS-39267 Permission check issue on different portal instances

Jenkins:
http://office.liferay.hu:1139/jenkins/view/Portal%20Testing/job/testing-norbertkocsis-liferay-portal/lastCompletedBuild/testReport/
note: tests ran yesterday afternonn, but branch has been rebased on current trunk