🛂(frontend) block editing title when not allowed

We had a case where the title input was editable
even when the user did not have the right to
edit it because of websocket problem during
collaboration. We fixed this issue by checking
the collaboration status before allowing the
edition of the title.
This commit is contained in:
Anthony LC
2025-09-19 16:45:40 +02:00
parent 18f4ab880f
commit 7ed46ab225
7 changed files with 66 additions and 54 deletions

View File

@@ -229,11 +229,11 @@ test.describe('Document create member', () => {
.last()
.fill('Hello World');
const urlDoc = page.url();
const docUrl = page.url();
// Other user will request access
const { otherPage, otherBrowserName, cleanup } =
await connectOtherUserToDoc(browserName, urlDoc);
await connectOtherUserToDoc({ browserName, docUrl });
await expect(
otherPage.getByText('Insufficient access rights to view the document.'),