- commit
- 0eb5b0f
- parent
- 910a7a5
- author
- Eric Bower
- date
- 2024-10-15 13:41:57 +0000 UTC
fix: check if user is nil when uploading files
1 files changed,
+1,
-1
+1,
-1
1@@ -244,7 +244,7 @@ func (h *UploadAssetHandler) findDenylist(bucket sst.Bucket, project *db.Project
2
3 func (h *UploadAssetHandler) Write(s ssh.Session, entry *sendutils.FileEntry) (string, error) {
4 user, err := shared.GetUser(s.Context())
5- if err != nil {
6+ if user == nil || err != nil {
7 h.Cfg.Logger.Error("user not found in ctx", "err", err.Error())
8 return "", err
9 }