Added a checkHasDocumentAccess method
Uses the SCOPE_DEPTH to determine how far to walk up the scope so
that the correct value for scope_path is set.
Patch by: Sverre Rabbelier
from django.dispatch import Signal
request_started = Signal()
request_finished = Signal()
got_request_exception = Signal(providing_args=["request"])