Skip to content

fix: Add placeholder page when the user accesses another user's personal drive - EXO-82012#306

Merged
MayTekayaa merged 2 commits intofeature/maintenancefrom
EXO-82012
Feb 16, 2026
Merged

fix: Add placeholder page when the user accesses another user's personal drive - EXO-82012#306
MayTekayaa merged 2 commits intofeature/maintenancefrom
EXO-82012

Conversation

@MayTekayaa
Copy link

Before this change, a user who was a member of a space wanted to open a document location. He was redirected to the placeholder page and found that he cannot access the document location, which was incorrect since he had access to this document, which was not located in another user's personal drive.
This change corrects this behavior by setting the canAccess property to true to give access to all documents in the space located outside a user's personal drive, as is the case on prod now.

@MayTekayaa MayTekayaa requested review from ahamdi and rdenarie January 30, 2026 10:31
Copy link
Member

@rdenarie rdenarie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description provided in the commit message do not correspond to the expected behaviour in the task :
In the commit message, you say that the placeholder page is incorrect
In the task, the placeholder is the expected behaviour.

Can you double what is wanted ?

In addition, setting canAccesDocument to true, without any permission check seems not a good practise

@MayTekayaa
Copy link
Author

The description provided in the commit message do not correspond to the expected behaviour in the task : In the commit message, you say that the placeholder page is incorrect In the task, the placeholder is the expected behaviour.

Can you double what is wanted ?

In addition, setting canAccesDocument to true, without any permission check seems not a good practise

It is true that in this task, the placeholder is the expected behavior but after the change this page also appears for other documents in the space that are not located on another user's personal drive.
The modification should therefore display the restricted page only when the document is linked to a personal drive.

@MayTekayaa MayTekayaa requested a review from rdenarie January 30, 2026 16:33
@rdenarie
Copy link
Member

I'm sorry, but I do not understand the fix. Please plan a call with me to discuss about.
Thanks

@exo-swf exo-swf force-pushed the feature/maintenance branch 2 times, most recently from 7c5aab5 to 318e587 Compare February 11, 2026 00:23
@ahamdi ahamdi removed their request for review February 13, 2026 09:02
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
36.1% Coverage on New Code (required ≥ 75%)

See analysis details on SonarQube Cloud

@MayTekayaa MayTekayaa requested a review from rdenarie February 16, 2026 11:56
@rdenarie
Copy link
Member

@MayTekayaa
canAccess property is a property meaning : does the user have access to the document path
canAccessDocumentLocation is a property meaning : does the user can open a file explorer on the document path

It is 2 different properties, and we need to keep canAccess. You cannot rename it. I think that canAccessDocumentLocation must be a new property

Copy link
Member

@rdenarie rdenarie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MayTekayaa
canAccess property is a property meaning : does the user have access to the document path
canAccessDocumentLocation is a property meaning : does the user can open a file explorer on the document path

It is 2 different properties, and we need to keep canAccess. You cannot rename it. I think that canAccessDocumentLocation must be a new property

@MayTekayaa MayTekayaa merged commit 6ca1318 into feature/maintenance Feb 16, 2026
10 of 11 checks passed
@MayTekayaa MayTekayaa deleted the EXO-82012 branch February 16, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments