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