Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294883

Incorrect help text

$
0
0

On NodeTypeForm, the following description is incorrect:

Users with the Administer content permission will be able to override these options.

see the screenshot..

At least the "Create new revision" is not related to the Administer content permission.

\Drupal\Core\Entity\ContentEntityForm::addRevisionableFormFields()

$form['revision'] = [
  '#type' => 'checkbox',
  '#title' => $this->t('Create new revision'),
  '#default_value' => $new_revision_default,
  '#access' => !$this->entity->isNew() && $this->entity->get($entity_type->getKey('revision'))->access('update'),
  '#group' => 'revision_information',
];

This checkbox can be edited by anyone, as Drupal core does not apply any access restriction on this field (with hook_entity_field_access())


Viewing all articles
Browse latest Browse all 294883

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>