MM-20345: Fixing etag problem not reloading all users when needed (#13640)

* MM-20345: Fixing etag problem not reloading all users when needed

* Fixing tests
Этот коммит содержится в:
Jesús Espino
2020-01-20 15:24:14 +01:00
коммит произвёл Miguel de la Cruz
родитель 50e9aa01c3
Коммит 8861d0cb33
2 изменённых файлов: 0 добавлений и 8 удалений

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

@@ -605,11 +605,6 @@ func getUsers(c *Context, w http.ResponseWriter, r *http.Request) {
profiles, err = c.App.GetUsersInChannelPage(inChannelId, c.Params.Page, c.Params.PerPage, c.IsSystemAdmin())
}
} else {
etag = c.App.GetUsersEtag(restrictions.Hash())
if c.HandleEtag(etag, "Get Users", w, r) {
return
}
userGetOptions, err = c.App.RestrictUsersGetByPermissions(c.App.Session.UserId, userGetOptions)
if err != nil {
c.Err = err