edx/edx-platform — pull request #6423 by wedaly (2014-12-31 18:08:01+00:00)
Title: Hide verification messaging if the user has an active verification

ECOM-864

This is a quick fix for the following situation:
1) A user submits photos for verification on 1/2/2014. Since verifications are good for 1 year, the verification is set to expire on 1/2/2015.
2) The user completes payment and enrolls in a course with a verification deadline on 1/3/2015.
3) The user views the dashboard before the verification expires.

At this point, a couple of strange things will happen:

* The user will see the "verify now" message on the dashboard, because the verification will have expired by the course's verification deadline.
* The user will *also* see that the verification status is "pending" or "approved" in the sidebar on the dashboard.
* If the user clicks the "verify now" link, the user will be redirected back to the dashboard, since the user already completed both payment and verification.

The quick fix is to simply hide the "verify now" message in this case. This isn't a great UX, but it should be sufficient to run the A/B test.

Reviewers: @stephensanchez @dianakhuang