Started working on new document button and permissions.

Signed-off-by: unknown <astring@astring-pc.aved.local>