diff options
author | George Goldberg <george@gberg.me> | 2018-09-12 15:32:05 +0100 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2018-09-12 10:32:05 -0400 |
commit | 0a5f792d2d6ceaa6c9bdb3050acbc4050c0c02f5 (patch) | |
tree | 37bf6f899abffe926c7c42337a19d67050382e50 /app/command_invite_test.go | |
parent | fba0f8e8b2e869654b3970396ed6fb0647e8910f (diff) | |
download | chat-0a5f792d2d6ceaa6c9bdb3050acbc4050c0c02f5.tar.gz chat-0a5f792d2d6ceaa6c9bdb3050acbc4050c0c02f5.tar.bz2 chat-0a5f792d2d6ceaa6c9bdb3050acbc4050c0c02f5.zip |
MM-11230: Make permissions checks in commands failsafe. (#9392)
Also add additional unit tests to make sure the permissions tests are
completely solid.
Diffstat (limited to 'app/command_invite_test.go')
-rw-r--r-- | app/command_invite_test.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/command_invite_test.go b/app/command_invite_test.go index 0d1db4a07..f141cb239 100644 --- a/app/command_invite_test.go +++ b/app/command_invite_test.go @@ -95,12 +95,7 @@ func TestInviteProvider(t *testing.T) { msg: basicUser4.Username, }, { - desc: "try to add a user to a direct channel", - expected: "api.command_invite.directchannel.app_error", - msg: userAndDMChannel, - }, - { - desc: "try to add a user to a privante channel with no permission", + desc: "try to add a user to a private channel with no permission", expected: "api.command_invite.private_channel.app_error", msg: userAndInvalidPrivate, }, |