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

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

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.

Description From Last Updated

Too many blank lines.

chipx86chipx86

Swap these.

chipx86chipx86
chipx86
  1. 
      
  2. djblets/privacy/consent/views.py (Diff revision 1)
     
     
     
     
     
     
    Show all issues

    Too many blank lines.

  3. djblets/privacy/consent/views.py (Diff revision 1)
     
     
     
    Show all issues

    Swap these.

  4. 
      
brennie
brennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-1.0.x (a678caf)
Loading...