Branch
[IMP] viin_document: add resource document on workspace * Problem - Users have the right to edit/post messages on source documents such as Projects, Sales Teams.. but do not have the right to post messages on documents or edit folders, upload documents to folders... * Cause - Permissions on documents and permissions on source documents are two separate subsystems. Therefore, cases like the above will occur, meaning having full authority on the Project that one is in charge of but cannot post messages to the Project's documents. * Solution - Identify the source document of the folder. Grant permissions according to the source document before checking permissions on the folder and documents. * Features in this commit - At the kanban interface of the document, display the name of the source document on its card. - Add a path to the folder, owner, and source document on the right sidebar. - Add source document information for the folder. - Add a path from the source document to the folder, document, and vice versa. - Add permissions according to the source document for documents and workspace. - Data migration for previous folders.
[IMP] viin_document: add resource document on workspace * Problem - Users have the right to edit/post messages on source documents such as Projects, Sales Teams.. but do not have the right to post messages on documents or edit folders, upload documents to folders... * Cause - Permissions on documents and permissions on source documents are two separate subsystems. Therefore, cases like the above will occur, meaning having full authority on the Project that one is in charge of but cannot post messages to the Project's documents. * Solution - Identify the source document of the folder. Grant permissions according to the source document before checking permissions on the folder and documents. * Features in this commit - At the kanban interface of the document, display the name of the source document on its card. - Add a path to the folder, owner, and source document on the right sidebar. - Add source document information for the folder. - Add a path from the source document to the folder, document, and vice versa. - Add permissions according to the source document for documents and workspace. - Data migration for previous folders.
[IMP] viin_document: add resource document on workspace * Problem - Users have the right to edit/post messages on source documents such as Projects, Sales Teams.. but do not have the right to post messages on documents or edit folders, upload documents to folders... * Cause - Permissions on documents and permissions on source documents are two separate subsystems. Therefore, cases like the above will occur, meaning having full authority on the Project that one is in charge of but cannot post messages to the Project's documents. * Solution - Identify the source document of the folder. Grant permissions according to the source document before checking permissions on the folder and documents. * Features in this commit - At the kanban interface of the document, display the name of the source document on its card. - Add a path to the folder, owner, and source document on the right sidebar. - Add source document information for the folder. - Add a path from the source document to the folder, document, and vice versa. - Add permissions according to the source document for documents and workspace. - Data migration for previous folders.
[FIX] viin_document*: acess right on document and workspace Before commit: - user cannot post message, log message to document if this document has been generate by user Solution: - check access right on resource of workspace, Then assign corresponding permissions on the document - indentify workspace has been generator of attachment by is_primary_workspace field