Reverted permissions and rolled back type to code