fix: skip user link for non-real users in processes list

Do not render a link to the privileges page for pseudo-users like
event_scheduler and unauthenticated user, since they have no
corresponding entry in the user accounts table.

Fixes #19842

Signed-off-by: Matt Van Horn <mvanhorn@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt Van Horn 2026-03-27 06:30:23 -07:00 committed by Matt Van Horn
parent 0f30f21436
commit 580546b504

View File

@ -46,7 +46,7 @@
</td>
<td class="font-monospace text-end">{{ row.id }}</td>
<td>
{% if row.user != 'system user' %}
{% if row.user not in ['system user', 'event_scheduler', 'unauthenticated user'] %}
<a href="{{ url('/server/privileges', {
'username': row.user,
'hostname': row.host,