Add Visibility Scope Controls for Custom Sidebar Navigation to Avoid Showing User-Specific Links on Share and Logged-Out Pages
Self Checks
- I have read the Contributing Guide and Language Policy.
- I have searched for existing issues search for existing issues, including closed ones.
- I confirm that I am using English to submit this report, otherwise it will be closed. / 请使用英语提交,否则会被关闭。
- Please do not modify this template :) and fill in all the required fields.
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Currently, once a custom sidebar navigation item is configured in Cloudreve, it may appear across multiple interfaces, such as:
- Logged-in user console
- Logged-out pages
- Public file sharing pages
- Other publicly accessible pages However, not every navigation item is intended for every type of visitor. For example, administrators may add sidebar links for:
- User events
- User community or chat groups
- Member-only pages
- User help center
- New feature announcements
- User benefits
- Support or ticket pages These links are often intended only for registered or logged-in users. If the same navigation items are also displayed on public share pages or logged-out pages, anyone who opens a shared file link can see and access them, even if they are not an actual user of the Cloudreve instance. For example: Name: User Community Group Link: https://example.com/group The original intention may be to let existing users join the community group. However, if a public share link is widely distributed, every visitor to the share page may also see the “User Community Group” entry and join it, even if they have never registered for or used the service. This may cause:
- Non-users joining user-only community groups
- Public visitors accessing user-specific campaigns or activities
- User-only information being exposed on public share pages
- Navigation entries appearing in inappropriate contexts
- Administrators avoiding useful sidebar links because they cannot control where they are shown Current Behavior Custom sidebar navigation items are displayed globally without sufficient per-item visibility control. For example: User console ↓
Shown
Public share page ↓ Shown
Logged-out page ↓ Shown Administrators cannot specify where each individual navigation item should be visible. Expected Behavior It would be useful to add a visibility or display scope setting for each custom sidebar navigation item. For example: Visibility:
○ All pages ○ Logged-in users only ○ Logged-out users only ○ User console only ○ Custom For the Custom option, administrators could further select specific contexts: ☑ User console ☑ Admin panel ☐ Public share pages ☐ Logged-out pages ☐ Login / registration pages For most user-oriented operational links, the administrator could simply choose: Logged-in users only or: User console only Then the behavior would become: Logged-in user → Can see "User Community Group"
Public share visitor → Hidden
Logged-out visitor → Hidden Suggested Minimum Implementation If page-level visibility controls are considered too complex initially, at minimum, each navigation item could support: Visibility:
- Everyone
- Logged-in users only This alone would solve most practical cases. It could later be extended with options such as:
- Logged-out users only
- Hide on share pages
- Show only in user console
- Visible only to selected user groups Further Enhancement A useful future extension would be visibility by user group. For example: Regular users VIP users Direct-link users Sharing users Administrators This would allow administrators to configure different navigation entries for different groups. For example: VIP users → VIP community group
Direct-link users → API / direct-link documentation
Regular users → Upgrade plan page This would make the custom sidebar navigation more useful for user operations, documentation, membership services, and feature discovery, instead of functioning only as a global list of links. Summary The main issue is: Custom sidebar navigation currently lacks visibility scope controls, causing user-specific navigation items to also appear on public share pages and logged-out pages.
At minimum, it would be useful to support: Everyone / Logged-in users only
If possible, this could later be extended to support visibility based on: Page context, authentication state, and user group.
2. Additional context or comments
No response
3. Can you help us with this feature?
- I am interested in contributing to this feature.
Source: cloudreve/cloudreve