]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/transaction_handlers_test.go
patch: v0.2.3
[rbdr/mobius] / hotline / transaction_handlers_test.go
index b8c74bbe7f9691b717bd47f6887c0d699840ef29..e1dc8cbe9336baa4d7e141169a31e87bc6dfa28c 100644 (file)
@@ -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
                                                }(),