Fixed bug with REST API approval.

refs #5048

The REST API approval logic wasn't working properly.