LPS-49448 move stub permission checkers out of portal-test