From 4f4258d5328035997d0bf42c3c6e4d90f901e8e2 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Sun, 9 Feb 2025 12:34:17 -0500 Subject: [PATCH] fix #5072 - administrators should be allowed to send system notifications --- Oqtane.Server/Controllers/NotificationController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Server/Controllers/NotificationController.cs b/Oqtane.Server/Controllers/NotificationController.cs index 8e439fd2..8eb06c88 100644 --- a/Oqtane.Server/Controllers/NotificationController.cs +++ b/Oqtane.Server/Controllers/NotificationController.cs @@ -223,7 +223,7 @@ namespace Oqtane.Controllers private bool IsAuthorized(int? userid) { - bool authorized = false; + bool authorized = User.IsInRole(RoleNames.Admin); if (userid != null) { authorized = (_userPermissions.GetUser(User).UserId == userid);