diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-05-29 10:03:19 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-05-29 10:03:19 -0700 |
| commit | 7e2e07da8cc7985e773e619410801c6dd84afe8b (patch) | |
| tree | f3bedfce2ffaf9a5d309d10f25a17017e2c3522c /hotline/transaction_handlers_test.go | |
| parent | 003a743e6767b3041c3a8321566c3586d73b399a (diff) | |
Implement handling of special case Dropbox and Upload folders
Diffstat (limited to 'hotline/transaction_handlers_test.go')
| -rw-r--r-- | hotline/transaction_handlers_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 }(), |