Update file.go

pull/3407/head
Darren Yu 5 months ago
parent d5e1837b04
commit f1d1e71aeb
No known key found for this signature in database
GPG Key ID: 2D69AA5646405984

@ -640,7 +640,7 @@ func (s *GetFileInfoService) Get(c *gin.Context) (*FileResponse, error) {
return nil, serializer.NewError(serializer.CodeParamErr, "unknown uri", err) return nil, serializer.NewError(serializer.CodeParamErr, "unknown uri", err)
} }
opts := []fs.Option{dbfs.WithFilePublicMetadata(), dbfs.WithNotRoot()} opts := []fs.Option{dbfs.WithFilePublicMetadata()}
if s.ExtendedInfo { if s.ExtendedInfo {
opts = append(opts, dbfs.WithExtendedInfo(), dbfs.WithEntityUser(), dbfs.WithFileShareIfOwned()) opts = append(opts, dbfs.WithExtendedInfo(), dbfs.WithEntityUser(), dbfs.WithFileShareIfOwned())
} }

Loading…
Cancel
Save