fix(tenant): 封堵审计文件与历史用户跨站访问
This commit is contained in:
@@ -426,7 +426,13 @@ func New(cfg config.Config, deps Dependencies, logger *zap.Logger) *gin.Engine {
|
||||
}
|
||||
}
|
||||
fileService := filemodule.NewService(fileStorage)
|
||||
fileHandler := filemodule.NewHandler(fileService, fileStorage, privateFileAuthorizer(deps.DB), recordPrivateFileUpload(deps.DB))
|
||||
fileHandler := filemodule.NewHandler(
|
||||
fileService,
|
||||
fileStorage,
|
||||
privateFileAuthorizer(deps.DB),
|
||||
recordPrivateFileUpload(deps.DB),
|
||||
adminPrivateFileAuthorizer(deps.DB),
|
||||
)
|
||||
listingService := listing.NewService(listingRepo, systemConfigRepo)
|
||||
listingHandler := listing.NewHandler(listingService, fileStorage, listing.HandlerOptions{
|
||||
ExternalUploadSecret: cfg.ExternalUploadSecret,
|
||||
|
||||
Reference in New Issue
Block a user