diff --git a/server/api/api.go b/server/api/api.go index e688a07eb..838023f1f 100644 --- a/server/api/api.go +++ b/server/api/api.go @@ -1574,10 +1574,6 @@ func (a *API) handlePostTeamRegenerateSignupToken(w http.ResponseWriter, r *http // "$ref": "#/definitions/ErrorResponse" if a.MattermostAuth { a.errorResponse(w, r.URL.Path, http.StatusNotImplemented, "not permitted in plugin mode", nil) - } - - if a.MattermostAuth { - a.errorResponse(w, r.URL.Path, http.StatusNotImplemented, "", nil) return }