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
Make use of default value
field_name is not modified and as such it is possible to properly use
the default value system (rather than just specifying None).
Patch by: Sverre Rabbelier