From d2edcceaa61f52c9a28eecab8e563bfef74bbaad Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 3 Feb 2025 23:18:39 +0100 Subject: Allow home uploads --- internal/mobius/handlers_transfers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/mobius/handlers_transfers.go b/internal/mobius/handlers_transfers.go index c5eab8c..67c484b 100644 --- a/internal/mobius/handlers_transfers.go +++ b/internal/mobius/handlers_transfers.go @@ -174,7 +174,7 @@ func HandleUploadFolder(cc *hotline.ClientConn, t *hotline.Transaction) (res []h // Handle special cases for Upload and Drop Box folders if !cc.Authorize(hotline.AccessUploadAnywhere) { - if !fp.IsUploadDir() && !fp.IsDropbox() { + if !fp.IsUploadDir() && !fp.IsDropbox() /*STARTFQ*/ && !fp.IsUserDir() /*ENDFQ*/ { return cc.NewErrReply(t, fmt.Sprintf(ErrMsgUploadRestrictedTemplate, "folder", string(t.GetField(hotline.FieldFileName).Data))) } } @@ -224,7 +224,7 @@ func HandleUploadFile(cc *hotline.ClientConn, t *hotline.Transaction) (res []hot // Handle special cases for Upload and Drop Box folders if !cc.Authorize(hotline.AccessUploadAnywhere) { - if !fp.IsUploadDir() && !fp.IsDropbox() { + if !fp.IsUploadDir() && !fp.IsDropbox() /*STARTFQ*/ && !fp.IsUserDir() /*ENDFQ*/{ return cc.NewErrReply(t, fmt.Sprintf(ErrMsgUploadRestrictedTemplate, "file", string(fileName))) } } -- cgit