There are some instances where administer filters is applied for certain roles because they need full boat access to formats sitewide. Then there are specialized instances where only one format needs to be enforced for a field or field in paragraph (patch pending to respect Better Formats). Despite whatever permissions a certain user has, Better Formats should be respected.

better_formats_filter_process_format currently checks if the user is an admin, which negates any setting on Better Formats:

  // Privileged users should still be able to change the format selection.
  if ($hide_selection && !$user_is_admin) {
    $element['format']['format']['#access'] = FALSE;
  }

$user_is_admin is determined if the user has "administer filters" permission, in which case, basically negates settings of Better Formats on the site. I think that this is a case where Better Formats should not check this, because you are dictating at the field level exactly what formats should be the options here, and in some cases, enforce only one format. However, with this permission, users can see all formats.

I think either this should be ignored, or, a new setting for BF per field should allow it to override and ignore user permissions to enforce these settings.

Comments

kevinquillen created an issue.