LPS-37791 Move logic out to method
LPS-37791 Revert LPS-32269 check actionId=VIEW and remove parent permission check