fix(security): synchronize report lifecycle and current roles
Revalidate admin roles from the database and serialize report generation registration with owner-scoped deletion. Refs #9 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -20,7 +20,7 @@ import (
|
||||
// covered separately when a disposable PostgreSQL test database is available.
|
||||
func accountRouter() *gin.Engine {
|
||||
gin.SetMode(gin.TestMode)
|
||||
return api.SetupRouter(handlers.New(nil, &config.Config{JWTSecret: "test-secret"}, nil, nil, nil, nil), "test-secret")
|
||||
return api.SetupRouter(handlers.New(currentRoleRepository(), &config.Config{JWTSecret: "test-secret"}, nil, nil, nil, nil), "test-secret")
|
||||
}
|
||||
|
||||
func TestPublicRegistrationIsUnavailable(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user