AllowEditPost and PostEditTimeLimit migration (#8208)

* AllowEditPost and PostEditTimeLimit migration

* Not set EDIT_POST permission to sysadmin_role if ALLOW_EDIT_POST is configured to NEVER

* Remove a bit of code duplication
Этот коммит содержится в:
Jesús Espino
2018-02-09 16:31:01 +01:00
коммит произвёл Martin Kraft
родитель 96ffde43dc
Коммит 0aa7ecd5e8
10 изменённых файлов: 86 добавлений и 26 удалений

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

@@ -232,6 +232,7 @@ func (me *TestHelper) CreatePost(channel *model.Channel) *model.Post {
UserId: me.BasicUser.Id,
ChannelId: channel.Id,
Message: "message_" + id,
CreateAt: model.GetMillis() - 10000,
}
utils.DisableDebugLogForTest()