Problem/Motivation

GrantRevisionAccess is checking instanceOf NodeForm. But #2391313: Move node forms to standard namespace, Drupal\node\Form changed NodeForm namespace. Therefore instanceOf check is not applying anymore.

Steps to reproduce

Use Drupal 11.2 and node override options.
Edit node with user for which the revision should be disabled
Note that the revision log message field is not shown, but the checkbox "Create new revision" is shown.

Compare that with Drupal 10.

Proposed resolution

Add BC compatible instanceOf check, like for example Save and Edit module does: https://git.drupalcode.org/project/save_edit/-/commit/55cf2b5016a0224136...

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

stefan.korn created an issue. See original summary.

stefan.korn’s picture

Status: Active » Needs review