Name: [16.0][IMP] viin_document: Add Resource reference for document and workspace

State: Killed

PR State: open

PR Author: Trần Trường Sơn

PR Author Email:

PR: #2573

Committer: Soncrits

Committer Email: truongson290893@gmail.com

Commit: 4e71cb546493c99b65641b6f11df808816e1167e

Description:

                                            [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.
                                            

Branch: 16.0

Instance ID: 0

Age: Not started

Up-time: Not finished