Corrected typo in exception name: 'InvaidPermissionError'.