From d000cedf2fa211d9f6feaef634ea327c84e800bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Fri, 14 Aug 2026 16:11:05 +0000 Subject: [PATCH] let anyone toggle hidden files again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the show/hide dotfiles button was dead for members. they open the browser at their own home, that home is `/`, and the toggle is disabled at `/`. it was never meant to apply to them. 74894b0c wrote it as user?.role === 'Super Admin' && currentPath === '/' to keep the OWNER's home root readable — it is all .bashrc and .ssh and .claude. then 044aacf4 removed the multi-user surface, dropped users.role, and noted in its own message that "every role === 'Super Admin' check was permanently true". so it folded the conjunct away and left `currentPath === '/'`. correct on a single-user server. multi-user came back on 2026-08-07 and this line did not come back with it, so a rule about one account's home quietly became a rule about everyone's — and members feel it constantly, because members are always at their root. removed rather than restored to owner-only: the point was a tidy default, not a prohibition, and `files/showHidden` already defaults to false. so dotfiles stay hidden until asked for, everywhere, for everyone — and the asking now works. the server never filtered dotfiles; readdir returns them and always did. this was only ever the client. Co-Authored-By: Claude Opus 5 --- .../FileBrowserApp/components/Toolbar/Toolbar.tsx | 8 +++----- .../apps/FileBrowser/FileBrowserApp/useFileBrowserApp.ts | 4 +--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/components/Toolbar/Toolbar.tsx b/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/components/Toolbar/Toolbar.tsx index f48f5101..ee7e52ba 100644 --- a/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/components/Toolbar/Toolbar.tsx +++ b/src/workspaces/officerdev/src/apps/FileBrowser/FileBrowserApp/components/Toolbar/Toolbar.tsx @@ -23,7 +23,6 @@ export const Toolbar = ({ fileBrowserManager }: ToolbarProps) => { setViewMode, setShowVideoDownload, setShowDictate, - hiddenForced, } = fileBrowserManager; return ( @@ -124,11 +123,10 @@ export const Toolbar = ({ fileBrowserManager }: ToolbarProps) => {