fix(router): update AdminUsers call to match new signature

Fix function call to pass currentUser as first parameter instead of
templateUsers, matching the refactored AdminUsers template signature.
This commit is contained in:
2026-02-22 19:06:29 -05:00
parent 844910a54b
commit fd08e8c613
+1 -1
View File
@@ -458,7 +458,7 @@ func registerFrontendRoutes(cfg *Config) {
}
var buf bytes.Buffer
err = templates.AdminUsers(templateUsers, adminCount, user.ID).Render(c.Request().Context(), &buf)
err = templates.AdminUsers(user, templateUsers, adminCount).Render(c.Request().Context(), &buf)
if err != nil {
return err
}