Add markers (blocks or signs) to chests in order to allow or prevent villagers getting/depositing stuff from/in them. Add permissions for player.