repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
bb90d2e
parent
f7a1506
author
Eric Bower
date
2022-11-03 03:36:10 +0000 UTC
fix: remove check for imgs feature flag
1 files changed,  +0, -5
M filehandlers/post_handler.go
+0, -5
 1@@ -164,11 +164,6 @@ func (h *ScpUploadHandler) Write(s ssh.Session, entry *utils.FileEntry) (string,
 2 	filename := entry.Name
 3 
 4 	if shared.IsExtAllowed(filename, h.ImgClient.Cfg.AllowedExt) {
 5-		if !h.ImgClient.HasAccess(userID) {
 6-			msg := "user (%s) does not have access to imgs.sh, cannot upload file (%s)"
 7-			return "", fmt.Errorf(msg, user.Name, filename)
 8-		}
 9-
10 		return h.ImgClient.Upload(s, entry)
11 	}
12