diff --git a/services/ans/src/advanced_notification_publish_service.cpp b/services/ans/src/advanced_notification_publish_service.cpp index 63624547c504c6fd6cd42c548e352cb6529da5f3..9b158f0d41fc7def60d2980f2cd3e65c0f81df00 100644 --- a/services/ans/src/advanced_notification_publish_service.cpp +++ b/services/ans/src/advanced_notification_publish_service.cpp @@ -2617,7 +2617,7 @@ ErrCode AdvancedNotificationService::PublishNotificationBySa(const sptrsubmit_h([&]() { - if (!bundle.empty() && IsDisableNotification(bundle)) { + if (!request->IsAgentNotification() && !bundle.empty() && IsDisableNotification(bundle)) { ANS_LOGE("bundle in Disable Notification list, bundleName=%{public}s", bundle.c_str()); result = ERR_ANS_REJECTED_WITH_DISABLE_NOTIFICATION; return;