Adding allowedToEdit checks to all document modification.
Adding allowedToEdit checks to all document modification.

documentcloud/documentcloud,Teino1978-Corp/Teino1978-Corp-documentcloud,roberttdev/dactyl,dannguyen/documentcloud,roberttdev/dactyl4,moodpo/documentcloud,monofox/documentcloud,roberttdev/dactyl4,dannguyen/documentcloud,Teino1978-Corp/Teino1978-Corp-documentcloud,gunjanmodi/documentcloud,Teino1978-Corp/Teino1978-Corp-documentcloud,ivarvong/documentcloud,Teino1978-Corp/Teino1978-Corp-documentcloud,monofox/documentcloud,roberttdev/dactyl4,monofox/documentcloud,gunjanmodi/documentcloud,dannguyen/documentcloud,ivarvong/documentcloud,moodpo/documentcloud,ivarvong/documentcloud,roberttdev/dactyl,documentcloud/documentcloud,gunjanmodi/documentcloud,roberttdev/dactyl,monofox/documentcloud,moodpo/documentcloud,ivarvong/documentcloud,dannguyen/documentcloud,roberttdev/dactyl4,moodpo/documentcloud,documentcloud/documentcloud,gunjanmodi/documentcloud,documentcloud/documentcloud