fix: make workspace navigation atomic and return home on account switch

This commit is contained in:
SantaSpeen committed 2026-10-25 21:19:10 +03:00
1 parent c02bf755f2
commit 55f2474660
21 files changed
+709 -61

No files matched your search

+2
View File
@@ -122,6 +122,8 @@ func TestInternalSessionBrowser(t *testing.T) {
os.Mkdir(filepath.Join(root, who), 0750)
os.WriteFile(filepath.Join(root, who, who+"-private.txt"), []byte(who+" PRIVATE"), 0600)
}
os.Mkdir(filepath.Join(root, "Alice", "Alice-only"), 0750)
os.WriteFile(filepath.Join(root, "Alice", "Alice-only", "nested-Alice.txt"), []byte("ALICE ONLY"), 0600)
st := scopedUserStorage(t, root, users.Permissions{Download: true, Create: true, Rename: true, Modify: true, Delete: true, Share: true}, []byte("key"))
st.Users = st.Users.(*customFSUser).Store
options, _ := st.Settings.Get()