diff --git a/internal/ui/handlers_accounts.go b/internal/ui/handlers_accounts.go index e4b1f4e..3c78823 100644 --- a/internal/ui/handlers_accounts.go +++ b/internal/ui/handlers_accounts.go @@ -15,7 +15,14 @@ import ( ) // knownRoles lists the built-in roles shown as checkboxes in the roles editor. -var knownRoles = []string{"admin", "user", "service"} +var knownRoles = []string{ + model.RoleAdmin, + model.RoleUser, + model.RoleGuest, + model.RoleViewer, + model.RoleEditor, + model.RoleCommenter, +} // handleAccountsList renders the accounts list page. func (u *UIServer) handleAccountsList(w http.ResponseWriter, r *http.Request) {