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 удалений

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

@@ -419,7 +419,7 @@ func (s *ServiceSettings) SetDefaults() {
}
if s.PostEditTimeLimit == nil {
s.PostEditTimeLimit = NewInt(300)
s.PostEditTimeLimit = NewInt(-1)
}
if s.EnablePreviewFeatures == nil {