'Return the preference settings of the logged in user'

@require_oauth2_scope('identity')
@validate(VUser(), fields=VList('fields', choices=PREFS_JSON_SPEC.spec.keys(), error=errors.errors.NON_PREFERENCE))
@api_doc(api_section.account, uri='/api/v1/me/prefs')
def GET_prefs(self, fields):

    resp = PrefsJsonTemplate(fields).data(c.oauth_user)
    return self.api_wrapper(resp)
