Skip to content

fix: hide pastebin and notes app menu entries on public pages#442

Open
dschmidt wants to merge 2 commits into
mainfrom
fix/hide-app-menu-on-public-pages
Open

fix: hide pastebin and notes app menu entries on public pages#442
dschmidt wants to merge 2 commits into
mainfrom
fix/hide-app-menu-on-public-pages

Conversation

@dschmidt
Copy link
Copy Markdown
Contributor

@dschmidt dschmidt commented May 15, 2026

Description

The pastebin and notes app-switcher entries appeared on public-link views where no user is logged in. Both items link to user-space routes that anonymous visitors cannot use. Guard menuItems with userStore.user, matching the existing web-app-draw-io pattern.

Opening .pastebin folders or .ocnb files via public links is unaffected; that flow uses appInfo.extensions with authContext: 'hybrid', independent of the menu item.

Related Issue

How Has This Been Tested?

  • test environment: type-check, prettier, eslint locally
  • test case 1: vue-tsc --noEmit clean for both packages
  • test case 2 (manual, recommended before merge): enable pastebin + notes, open a public folder link unauthenticated, app switcher should show neither entry; .pastebin / .ocnb via public link should still open

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

dschmidt added 2 commits May 15, 2026 21:19
The pastebin menu item was rendered into the app switcher even on
public-link views where no user is logged in. Match the pattern used
by web-app-draw-io and return an empty extension list when there is
no user in the store.

Fixes #413
Same as pastebin: the notes menu item was rendered into the app
switcher even on public-link views where no user is logged in.
Return an empty extension list when there is no user in the store.

This does not affect opening .ocnb files via public links — that
flow goes through appInfo.extensions with authContext: 'hybrid',
which is independent of the menu item.
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.

[pastebin] menu entry is showing on public pages

1 participant