Update the consent view decorator/mixin to check for policy requirements

Review Request #9976 — Created May 23, 2018 and submitted — Latest diff uploaded

Information

Djblets
release-1.0.x
cb24d21...

Reviewers

The @check_pending_consent and CheckPendingConsentMixin now check
the registry for the presence of a PolicyConsentRequirement instance
and, if found, ensure that the policy has been accepted. If the policy
has been rejected, the decorator/mixin will redirect to the pending
consent URL.

Ran unit tests.