feat(ui): 1 modal to manage shares (users & public share)

fix(share): ensure Authz parent is created/updated on publicShare create/update

fix(ShareModal): do not show Token (public) grants in People section
This commit is contained in:
Edouard Vanbelle
2026-05-25 16:54:50 +02:00
parent a88e4c2733
commit 79c1a37931
15 changed files with 1897 additions and 367 deletions
+3 -1
View File
@@ -514,6 +514,7 @@ impl AppServiceFactory {
&self,
repos: &RepositoryServices,
db_pool: &Arc<PgPool>,
authorization: &Arc<crate::infrastructure::services::pg_acl_engine::PgAclEngine>,
) -> Option<Arc<ShareService>> {
if !self.config.features.enable_file_sharing {
tracing::info!("File sharing service is disabled in configuration");
@@ -537,6 +538,7 @@ impl AppServiceFactory {
repos.file_read_repository.clone(),
repos.folder_repository.clone(),
password_hasher,
authorization.clone(),
));
tracing::info!("File sharing service initialized");
@@ -652,7 +654,7 @@ impl AppServiceFactory {
self.create_application_services(&core, &repos, trash_service.clone(), &authorization);
// 5. Share service
let share_service = self.create_share_service(&repos, &pool);
let share_service = self.create_share_service(&repos, &pool, &authorization);
apps.share_service = share_service.clone();
let share_browse_service = share_service.as_ref().map(|s| {