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);