It depends on the nature of the felony, likely the jurisdiction and is at the discretion of the court. There are processes that can be pursued to appeal for a reinstatement of the right to keep firearms. You would likely need to contact an attorney that specializes in 2nd amendment law and have them review the case.