Skip to content

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Sep 12, 2025

Purpose

When we invited a user, this user on a child doc had his role indicating "owner" even if he was a "administrator".
Before the subpages feature, the user role was computed thanks to the abilities.
This is not the correct way to do it anymore, the abilities are now different.
We now have user_role in the doc response which is the correct way to get the user role for the current document.

Proposal

  • 🐛(frontend) fix legacy role computation
  • 🩹(demo) update the email in realm.json

Demo

image

@AntoLC AntoLC self-assigned this Sep 12, 2025
@AntoLC AntoLC added bug Something isn't working frontend labels Sep 12, 2025
@AntoLC AntoLC requested a review from lunika September 12, 2025 16:36
Copy link

github-actions bot commented Sep 12, 2025

Size Change: -26 B (0%)

Total Size: 3.66 MB

Filename Size Change
apps/impress/out/_next/static/d4b83402/_buildManifest.js 0 B -889 B (removed) 🏆
apps/impress/out/_next/static/daf29f04/_buildManifest.js 888 B +888 B (new file) 🆕

compressed-size-action

@AntoLC AntoLC force-pushed the fix/doc-header-role branch 5 times, most recently from 00af983 to 637583c Compare September 15, 2025 10:48
We updated the email addresses for the demo users
but forgot to change them in the realm.json file.
This commit fixes that oversight.
Before the subpages feature, the user_role was
computed thanks to the abilities.
This is not the correct way to do it anymore,
the abilities are now different.
We now have "user_role" in the doc response
which is the correct way to get the user role
for the current document.
@AntoLC AntoLC force-pushed the fix/doc-header-role branch from 637583c to ecd2f97 Compare September 16, 2025 15:23
@AntoLC AntoLC merged commit ecd2f97 into main Sep 16, 2025
21 of 22 checks passed
@AntoLC AntoLC deleted the fix/doc-header-role branch September 16, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants