Skip to content

Align the behavior of contexts management on the front end to the backend model #11099

Description

@tdipisa

Description

When the user role is changed from ADMIN to USER he is anyway able to edit contexts he created from the frontend. By design, the MS backend doesn't provide any restrictions on changing contexts based on the user role. Contexts are resources like all the other ones and the same policies are applied for authenticated users.
In the previous MS UI, it was possible to edit and manage context only from a dedicated admin section. Now that in the new UI contexts can be managed in home directly as other resources, the default configuration should be coherent:

  1. or we allow all users to create contexts (the better option more in line with the model)
  2. or we deny users with USER role from editing context created by them from the UI

It is already possible to apply one of them by app configuration but it will anyway remains only a possible client side setup for the reason explained above according to the model behind.

How to reproduce

  • Create a context as user X with ADMIN right
  • Change the role of that user to normal USER

Expected Result

One of the option above. Better the first one.

Current Result

The user cannot create new contexts but he is still able to edit contexts he created as admin

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

Activity

  1. added this to the 2025.01.00 milestone on May 14, 2025
  2. self-assigned this
    on May 14, 2025
  3. added a commit that references this issue on May 19, 2025
    419c6ac
  4. added a commit that references this issue on May 19, 2025
    8b08044
  5. self-assigned this
    on May 19, 2025
  6. added
    BackportNeeded
    on May 19, 2025
  7. added a commit that references this issue on May 21, 2025
    7c4b5c3
  8. removed
    BackportNeeded
    on May 21, 2025
  9. added a commit that references this issue on May 21, 2025
    f741b55
  10. added 2 commits that reference this issue on Aug 26, 2025
    984ef98
    0c1cf40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions