private static bool HasPermission(Subscription subscription, Event @event)
{
if (@event.NotificationType == NotificationType.MinorVersionModified)
return SecurityHandler.HasPermission(subscription.User, @event.ContentPath, @event.CreatorId, @event.LastModifierId, PermissionType.OpenMinor);
else
return SecurityHandler.HasPermission(subscription.User, @event.ContentPath, @event.CreatorId, @event.LastModifierId, PermissionType.Open);
}