mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 23:39:56 +01:00
another minor grammar fixes
This commit is contained in:
parent
ec41a59539
commit
10f2b4b413
@ -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
|
||||
}
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user