Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b457c74d49 |
@@ -33,6 +33,6 @@ func authenticatedMiddleware(deps *deps, next http.Handler) http.Handler {
|
||||
})
|
||||
}
|
||||
|
||||
func CurrentUser(r *http.Request) any {
|
||||
return r.Context().Value(userContextKey{})
|
||||
func CurrentUser(r *http.Request) SessionUser {
|
||||
return r.Context().Value(userContextKey{}).(SessionUser)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user