refactor(auth): rename ListPermEntries to ListTempEntries in whitelist list handler

This commit is contained in:
db123-test
2026-05-04 12:06:27 +03:30
parent 03fdf23bdb
commit 145d3aa8ac

View File

@@ -76,7 +76,7 @@ func whitelistListHandler(cfg Config, db *sql.DB) http.HandlerFunc {
http.Error(w, "unauthorized", http.StatusUnauthorized) http.Error(w, "unauthorized", http.StatusUnauthorized)
return return
} }
entries, err := ListPermEntries(db) entries, err := ListTempEntries(db)
if err != nil { if err != nil {
http.Error(w, "database error", http.StatusInternalServerError) http.Error(w, "database error", http.StatusInternalServerError)
return return