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