another minor grammar fixes

This commit is contained in:
Anton Markelov 2018-02-20 10:12:19 +10:00
parent ec41a59539
commit 10f2b4b413
3 changed files with 6 additions and 6 deletions

View File

@ -109,7 +109,7 @@ func RemoveTask(w http.ResponseWriter, r *http.Request) {
editor := context.Get(r, "user").(*db.User)
if editor.Admin != true {
log.Warn(editor.Username + " doesn't permit task log deletion")
log.Warn(editor.Username + " is not permitted to delete task logs")
w.WriteHeader(http.StatusUnauthorized)
return
}

View File

@ -30,7 +30,7 @@ func addUser(w http.ResponseWriter, r *http.Request) {
editor := context.Get(r, "user").(*db.User)
if editor.Admin != true {
log.Warn(editor.Username + " doesn't permit user creation")
log.Warn(editor.Username + " is not permitted to create users")
w.WriteHeader(http.StatusUnauthorized)
return
}
@ -80,7 +80,7 @@ func updateUser(w http.ResponseWriter, r *http.Request) {
}
if editor.Admin != true && editor.ID != oldUser.ID {
log.Warn(editor.Username + " doesn't permitted for user editing")
log.Warn(editor.Username + " is not permitted to edit users")
w.WriteHeader(http.StatusUnauthorized)
return
}
@ -113,7 +113,7 @@ func updateUserPassword(w http.ResponseWriter, r *http.Request) {
}
if editor.Admin != true && editor.ID != user.ID {
log.Warn(editor.Username + " doesn't permitted for user editing")
log.Warn(editor.Username + " is not permitted to edit users")
w.WriteHeader(http.StatusUnauthorized)
return
}
@ -141,7 +141,7 @@ func deleteUser(w http.ResponseWriter, r *http.Request) {
editor := context.Get(r, "user").(*db.User)
if editor.Admin != true && editor.ID != user.ID {
log.Warn(editor.Username + " doesn't permitted for user deletion")
log.Warn(editor.Username + " is not permitted to delete users")
w.WriteHeader(http.StatusUnauthorized)
return
}

@ -1 +1 @@
Subproject commit dcb3abe0d08a7096c025f32829770e41de1735d2
Subproject commit c4f6280ac9177587197e1b5017e6181b3fa692e6