Adjust govet settings and fix issues found by it (#12947)

Этот коммит содержится в:
Ben Schumacher
2019-11-04 13:47:59 +01:00
коммит произвёл GitHub
родитель 3a1deeaac5
Коммит 812c40a307
11 изменённых файлов: 37 добавлений и 38 удалений

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

@@ -925,11 +925,6 @@ func patchUser(c *Context, w http.ResponseWriter, r *http.Request) {
}
if c.App.Session.IsOAuth && patch.Email != nil {
if err != nil {
c.Err = err
return
}
if ouser.Email != *patch.Email {
c.SetPermissionError(model.PERMISSION_EDIT_OTHER_USERS)
c.Err.DetailedError += ", attempted email update by oauth app"