Store permission fields

Hydra actually reads these fields, so they need to be stored.