feat(ui): add share modal and users

- fix(external users): fix app starting for external users
This commit is contained in:
Edouard Vanbelle
2026-06-02 12:25:44 +02:00
parent ec72374651
commit 9fac34f91e
15 changed files with 468 additions and 54 deletions
+11
View File
@@ -405,6 +405,17 @@ async function loadFiles(options = { insertHistory: true }) {
try {
if (!app.userHomeFolderId) await resolveHomeFolder();
// External users have no home folder. If they land on /files
// without a specific folder id in the URL, redirect them to
// /#/sharedwithme — their actual landing page. This guards
// against `fetchResourcesPage('')` building `/api/folders//resources`.
if (app.isExternalUser && (!app.currentPath || app.currentPath === '')) {
clearTimeout(spinnerTimeout);
_loading = false;
window.location.hash = '#/sharedwithme';
return;
}
// Resolve path to home folder when none is set
if (!app.currentPath || app.currentPath === '') {
if (app.userHomeFolderId) {