Skip to main content

field_check

Function field_check 

Source
async fn field_check<T>(
    services: &Services,
    body: &Ruma<T>,
    field: &ProfileFieldName,
) -> Result
where T: Sync,
Expand description

Refuses a profile field change withheld by profile.enable_set_displayname or profile.enable_set_avatar_url.

may_set_profile_field decides which fields are gated and who is exempt.