MM-11230: Make permissions checks in commands failsafe. (#9392)

Also add additional unit tests to make sure the permissions tests are
completely solid.
Этот коммит содержится в:
George Goldberg
2018-09-12 15:32:05 +01:00
коммит произвёл Harrison Healey
родитель fba0f8e8b2
Коммит 0a5f792d2d
12 изменённых файлов: 582 добавлений и 133 удалений

Просмотреть файл

@@ -1,10 +1,14 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package app
import (
"testing"
"github.com/mattermost/mattermost-server/model"
"github.com/stretchr/testify/assert"
"github.com/mattermost/mattermost-server/model"
)
func TestHeaderProviderDoCommand(t *testing.T) {