Make sure the user has restricted rights to create a new document
This way users cannot create a document in a scope they should not
have direct access to.
Patch by: Sverre Rabbelier
import os, sys
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
import pkg_resources
pkg_resources.require('WebOb')