From 374e5facfa0820fe7ce74765f6c00db4c7352206 Mon Sep 17 00:00:00 2001 From: williambza Date: Mon, 6 Jul 2026 12:04:53 +0200 Subject: [PATCH] Use correct permissions for rols --- src/ServiceControl.Infrastructure/Auth/RolePermissions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ServiceControl.Infrastructure/Auth/RolePermissions.cs b/src/ServiceControl.Infrastructure/Auth/RolePermissions.cs index 473e9e19d3..1263d43f1e 100644 --- a/src/ServiceControl.Infrastructure/Auth/RolePermissions.cs +++ b/src/ServiceControl.Infrastructure/Auth/RolePermissions.cs @@ -36,7 +36,6 @@ public static class RolePermissions Permissions.ErrorLicensingView, Permissions.ErrorNotificationsView, Permissions.ErrorRedirectsView, - Permissions.ErrorThroughputView, ]; static readonly string[] Operate = @@ -62,6 +61,7 @@ public static class RolePermissions Permissions.ErrorNotificationsManage, Permissions.ErrorNotificationsTest, Permissions.ErrorRedirectsManage, + Permissions.ErrorThroughputView, Permissions.ErrorThroughputManage, ]; @@ -69,7 +69,7 @@ public static class RolePermissions new Dictionary>(StringComparer.OrdinalIgnoreCase) { [Reader] = ToSet([.. Read, .. ReadConfiguration]), - [Writer] = ToSet([.. Read, .. Operate]), + [Writer] = ToSet([.. Read, .. ReadConfiguration, .. Operate]), [Admin] = ToSet([.. Read, .. ReadConfiguration, .. Operate, .. Configure]), }.ToFrozenDictionary(StringComparer.OrdinalIgnoreCase);