Lufthansa has made a statement about this:
Information on the carriage of Apple MacBooks
Apple has recalled certain 15 inch models of Macbook Pro laptops sold between 2015 and 2017 as a result of a battery defect. If the battery of those specific recalled models were not replaced by the manufacturer, the passenger will not be able to carry the laptop on board the aircraft. Lufthansa is following a safety directive from the European Aviation Safety Authority (EASA) which has been in force since February 2017. It prohibits the transportation of defective lithium batteries or those affected by a recall. Lufthansa crews are carefully trained in handling lithium batteries.
Aegean has published no statement on this, so as mentioned in the outra resposta, presumably this is allowed.