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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user