Added permissions checks for restricted fields.