Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨(frontend) hide search and create doc button if not logged #555

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

PanchoutNathan
Copy link
Collaborator

Purpose

Currently, if the user is not logged in and goes to a public document, they can create or search for documents

We must therefore hide these buttons if we are not connected

@PanchoutNathan PanchoutNathan requested a review from AntoLC January 15, 2025 09:52
@PanchoutNathan PanchoutNathan self-assigned this Jan 15, 2025
- Added visibility checks for 'search' and 'New doc' buttons in the
document visibility tests.
- Updated LeftPanelHeader to conditionally render 'search' and 'New doc'
buttons based on user authentication status, improving user experience
and access control.
@PanchoutNathan PanchoutNathan force-pushed the bug/hide-buttons-public-docs branch from 1d9a774 to 16a1d9c Compare January 15, 2025 09:53
@AntoLC AntoLC merged commit 2ede746 into main Jan 15, 2025
16 of 17 checks passed
@AntoLC AntoLC deleted the bug/hide-buttons-public-docs branch January 15, 2025 11:00
@AntoLC AntoLC mentioned this pull request Jan 15, 2025
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