Skip to content

Reader can delete if no reload after permission change #1331

@virgile-dev

Description

@virgile-dev

Bug Report

Problematic behavior
Reader can delete if no reload after permission change

Expected behavior/code
I shouldn't be able to delete docs or subdocs if I'm a reader. The permission change should have a dynamic effect on the page without requiring the user to reload to reflect if permission changed after page load.

Steps to Reproduce

  1. Add user as an editor to the doc
  2. User loads the doc
  3. Change user permission to reader
  4. User can delete doc as reader if no reload of the page

Environment

  • Docs version: 3.5.0
  • Instance url: docs.numerique.gouv.fr

Possible Solution

Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions