Jason Devine and his wife, Bonnie, are being allowed to resume custody of their four children, he says. Jason Devine and his wife, Bonnie, are being allowed to resume custody of their four children, he says. (CBC)

A Calgary man who was not allowed to take his children home since he was the target of a brutal home invasion earlier this week says provincial officials have now changed their minds.

Jason Devine told CBC News on Wednesday that social workers with Alberta Children and Youth Services have decided that he and his wife, Bonnie, can have custody again of their four children.

At about 1 a.m. MT on Monday, five masked men armed with bats and hammers invaded the Devines' southeast Calgary house.

The culprits badly beat the anti-racism activist and broke his friend's arm while Bonnie Devine called 911.

Since the attack, the Devines' four children have been staying with Bonnie Devine's mother, Lori.

Provincial officials instructed the grandmother not to return the children to their parents' care while officials investigated whether the Devines' home was a safe environment for them, she said.

The parents learned Wednesday afternoon that the province has decided to close the investigation and let the children go home, Jason Devine said.

"It seems to me it was very wrong-headed approach. I don't see how it's in the best interest not to let us have them in our house," he said.

Devine alleges his attackers are white supremacists seeking revenge for his work bringing awareness to what he says is a neo-Nazi problem in Calgary.

Investigators agree the Devines' home was targeted, but they have not confirmed a motive. A neo-Nazi angle is being considered, officials have said.