fix: sidebar Workspace entry ignores group permission changes until reload (#32171)

When an admin changed a group's permissions, members who had the app open saw Workspace show up or vanish in their user menu right away, but the sidebar kept its Workspace entry as it was until they reloaded the page. The Notes, Calendar and Automations entries in the sidebar had the same problem. The sidebar now follows the change right away, like the user menu.

Fixes #32020
This commit is contained in:
Classic298 2026-10-10 17:48:55 +02:00 • committed by GitHub
parent 200036f6a6
commit 88b3f68a1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -154,7 +154,7 @@
$: pinnedItems = $settings?.pinnedMenuItems ?? DEFAULT_PINNED_ITEMS;
const isMenuItemVisible = (id) => {
$: isMenuItemVisible = (id) => {
switch (id) {
case 'notes':
return (