From 7e2e07da8cc7985e773e619410801c6dd84afe8b Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Sun, 29 May 2022 10:03:19 -0700 Subject: Implement handling of special case Dropbox and Upload folders --- hotline/transaction_handlers_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hotline/transaction_handlers_test.go') diff --git a/hotline/transaction_handlers_test.go b/hotline/transaction_handlers_test.go index b8c74bb..e1dc8cb 100644 --- a/hotline/transaction_handlers_test.go +++ b/hotline/transaction_handlers_test.go @@ -818,7 +818,7 @@ func TestHandleUploadFile(t *testing.T) { wantErr bool }{ { - name: "when request is valid", + name: "when request is valid and user has Upload Anywhere permission", args: args{ cc: &ClientConn{ Server: &Server{ @@ -828,6 +828,7 @@ func TestHandleUploadFile(t *testing.T) { Access: func() *[]byte { var bits accessBitmap bits.Set(accessUploadFile) + bits.Set(accessUploadAnywhere) access := bits[:] return &access }(), -- cgit