GTNPORTAL-3287: Additional cleanup of PortalImpl.hasPermission method