diff --git a/api/src/main/java/com/epam/pipeline/manager/security/notification/NotificationPermissionManager.java b/api/src/main/java/com/epam/pipeline/manager/security/notification/NotificationPermissionManager.java index 54de50033d..4e307d45ef 100644 --- a/api/src/main/java/com/epam/pipeline/manager/security/notification/NotificationPermissionManager.java +++ b/api/src/main/java/com/epam/pipeline/manager/security/notification/NotificationPermissionManager.java @@ -46,7 +46,7 @@ public boolean hasPermission(final Long notificationId) { if (userNotification == null) { return false; } - return hasPermission(userNotification); + return hasPermissionByUserId(userNotification.getUserId()); } public boolean hasPermissionByUserId(final Long userId) {