diff options
Diffstat (limited to 'pkg/app/handler/cvetool/state.go')
-rw-r--r-- | pkg/app/handler/cvetool/state.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/pkg/app/handler/cvetool/state.go b/pkg/app/handler/cvetool/state.go index 8ff46cb..e422343 100644 --- a/pkg/app/handler/cvetool/state.go +++ b/pkg/app/handler/cvetool/state.go @@ -20,12 +20,6 @@ func ChangeState(w http.ResponseWriter, r *http.Request) { return } - if !user.CanEditCVEs() { - logger.Error.Println("Err, user can not edit.") - w.Write([]byte("err")) - return - } - id, newState, reason, err := getStateParams(r) cveItem := &cve.DefCveItem{Id: id} |