Britney Spears has been granted a restraining order against her former manager.