Migrate Roles Layered store to Sync by default (#10790)

* Migrate Roles Layered store to Sync by default

* Fixing govet

* Addressing PR review comments
Этот коммит содержится в:
Jesús Espino
2019-05-17 17:03:05 +02:00
коммит произвёл Jesse Hallam
родитель fb01d37846
Коммит 6d1ac00330
18 изменённых файлов: 645 добавлений и 639 удалений

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

@@ -48,8 +48,8 @@ func (a *App) ResetPermissionsSystem() *model.AppError {
}
// Purge all roles from the database.
if result := <-a.Srv.Store.Role().PermanentDeleteAll(); result.Err != nil {
return result.Err
if err := a.Srv.Store.Role().PermanentDeleteAll(); err != nil {
return err
}
// Remove the "System" table entry that marks the advanced permissions migration as done.