From 0a5f792d2d6ceaa6c9bdb3050acbc4050c0c02f5 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Wed, 12 Sep 2018 15:32:05 +0100 Subject: MM-11230: Make permissions checks in commands failsafe. (#9392) Also add additional unit tests to make sure the permissions tests are completely solid. --- app/command_invite_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'app/command_invite_test.go') 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, }, -- cgit v1.2.3-1-g7c22