Browse Source

fix: Add the missing permission dependencies

pull/1434/head
colin 3 weeks ago
parent
commit
6b0dc0b93b
  1. 1
      aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.Application/LINGYUN/Abp/Notifications/NotificationAppService.cs
  2. 1
      aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.HttpApi/LINGYUN/Abp/Notifications/NotificationController.cs

1
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(

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

Loading…
Cancel
Save