[TECHNICAL SUPPORT] LPS-46800 Imported role permissions do not function as expected

I also sent it here https://github.com/akosthurzo/liferay-portal-ee/pull/5 because Role import doesn't seem to work on master right now, so it can't be tested.