refactor(auth): rename ListPermEntries to ListTempEntries in whitelist list handler
This commit is contained in:
2
auth.go
2
auth.go
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user