Implemented permissions system and editor