- Added document access permission assignment to the document controller.
- Added test for check the document access permission.