# Feature COMMS-441 - Ensure that the existing Document permissions are respected

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-441

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 17.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Modules and project features / Documents |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a project admin  
**I want** the existing permissions for user groups for documents to continue working  
**so that** I can maintain the same level of control

**Acceptance criteria**

  - If a user opens a document they either get a 'show/readonly' view or an edit view - based on their permissions

  - Permissions
    
      - view\_documents (project level)
        
          - index
        
          - show
        
          - download attachments
    
      - manage documents (project level), includes all above and
        
          - create and edit
        
          - destroy
        
          - add attachments
        
          - destroy attachments

**Technical notes**

  - The permissions already exist, we need to make sure to enforce them - especially 'show' in 'view\_documents' will need to be handled as the default view is 'edit'. BlockNote can be set to read-only mode - see <https://www.blocknotejs.org/docs/reference/editor/overview#editable>
