Skip to content

Commit

Permalink
fix merge issue from "Update slash command permission (#22468)"
Browse files Browse the repository at this point in the history
  • Loading branch information
mickmister committed May 4, 2023
1 parent f4ed37c commit 3d5991a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api4/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/mattermost/mattermost-server/v6/app/request"
"github.com/mattermost/mattermost-server/v6/model"
"github.com/mattermost/mattermost-server/v6/shared/mlog"
)
Expand Down Expand Up @@ -1068,6 +1069,7 @@ func TestExecuteCommandInTeamUserIsNotOn(t *testing.T) {

func TestExecuteCommandReadOnly(t *testing.T) {
th := Setup(t).InitBasic()
ctx := request.EmptyContext(th.TestLogger)
defer th.TearDown()
client := th.Client

Expand Down Expand Up @@ -1125,6 +1127,7 @@ func TestExecuteCommandReadOnly(t *testing.T) {
th.App.SetPhase2PermissionsMigrationStatus(true)

_, appErr = th.App.PatchChannelModerationsForChannel(
ctx,
th.BasicChannel,
[]*model.ChannelModerationPatch{{
Name: &model.PermissionCreatePost.Id,
Expand Down

0 comments on commit 3d5991a

Please sign in to comment.