From 6b0dc0b93b3b42c38b924c6cd5e13f07cf8a4d9b Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 4 Mar 2026 14:42:19 +0800 Subject: [PATCH] fix: Add the missing permission dependencies --- .../LINGYUN/Abp/Notifications/NotificationAppService.cs | 1 + .../LINGYUN/Abp/Notifications/NotificationController.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.Application/LINGYUN/Abp/Notifications/NotificationAppService.cs b/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.Application/LINGYUN/Abp/Notifications/NotificationAppService.cs index b2e095b70..efee89a25 100644 --- a/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.Application/LINGYUN/Abp/Notifications/NotificationAppService.cs +++ b/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.Application/LINGYUN/Abp/Notifications/NotificationAppService.cs @@ -127,6 +127,7 @@ public class NotificationAppService : AbpNotificationsApplicationServiceBase, IN severity: input.Severity); } + [Authorize(NotificationsPermissions.Notification.Send)] public async virtual Task SendTemplateAsync(NotificationTemplateSendDto input) { var notificationTemplate = new NotificationTemplate( diff --git a/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.HttpApi/LINGYUN/Abp/Notifications/NotificationController.cs b/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.HttpApi/LINGYUN/Abp/Notifications/NotificationController.cs index bf5dd07cc..b0b13c195 100644 --- a/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.HttpApi/LINGYUN/Abp/Notifications/NotificationController.cs +++ b/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.HttpApi/LINGYUN/Abp/Notifications/NotificationController.cs @@ -33,6 +33,7 @@ public class NotificationController : AbpControllerBase, INotificationAppService [HttpPost] [Route("send/template")] + [Authorize(NotificationsPermissions.Notification.Send)] public virtual Task SendTemplateAsync(NotificationTemplateSendDto input) { return NotificationAppService.SendTemplateAsync(input);