Relatives should have the right to access their dead loved ones’ Facebook accounts, a German court ruled Thursday.

Germany’s Federal Court of Justice granted the parents of an unnamed 15-year-old girl who died in 2012 full control of her page, saying social media accounts should be inherited just as books and letters are, according to Deutsche Welle.

A lower court had already ruled in the family’s favor in 2015, but an appeals court overturned the decision last year, saying it would compromise the teen’s living contacts’ right to privacy.

Facebook typically only allows relatives of a dead user to either turn their kin’s page into a static “memorial” or delete it entirely.

But the parents in this case had repeatedly asked the social media giant to let them see their daughter’s chat history so they can work out whether the girl — who was hit by a train — committed suicide or if her death was an accident, the outlet reports.

Beyond giving her folks closure, the information would help determine whether the train driver was owed compensation.

A Facebook attorney told DW he doesn’t think the site will appeal Thursday’s ruling.