refactor(server/api): migrate me/* + events preludes (A2 5/N)
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"github.com/jackc/pgx/v5"
|
||||
|
||||
"git.fabledsword.com/bvandeusen/minstrel/internal/apierror"
|
||||
"git.fabledsword.com/bvandeusen/minstrel/internal/auth"
|
||||
"git.fabledsword.com/bvandeusen/minstrel/internal/db/dbq"
|
||||
)
|
||||
|
||||
@@ -24,9 +23,8 @@ type systemPlaylistsStatusResp struct {
|
||||
// Returns the caller's system_playlist_runs row, or zero-values when no row
|
||||
// exists yet (i.e. the user has never had a build attempted).
|
||||
func (h *handlers) handleGetSystemPlaylistsStatus(w http.ResponseWriter, r *http.Request) {
|
||||
caller, ok := auth.UserFromContext(r.Context())
|
||||
caller, ok := requireUser(w, r)
|
||||
if !ok {
|
||||
writeErr(w, apierror.Unauthorized("unauthenticated", "no session"))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user