Problem/Motivation
There are several changes in Drupal 11.3 that affect this module. I just opened the 1.1.x branch, and I would like to have a 1.1.0 release that removes code from the module that supports earlier versions of Drupal core.
The most significant change is that Drupal core now has a permission that does the same thing as the administer node status permission from this module: see the change record New permission available to control the Published status of Nodes.
Proposed resolution
- Change the core compatibility to
^11.3 || ^12. - Remove the
administer node statuspermission. Add an update function that replaces it with the coreadminister node published statuspermission. - Remove the
@groupattribute from the PHPUnit test. (The corresponding attribute was added in #3601597: Automated Drupal 12 compatibility fixes for nodepermissions 1.0.x-dev.) - Remove the
.modulefile and the.services.ymlfile. (They implement one hook, calling the OO version.)
Remaining tasks
User interface changes
The "Administer node status field" permission will no longer appear on /admin/people/permissions/module/nodepermissions (nor on the main permissions form).
Before

API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| nodepermissions-with-status.png | 178.93 KB | benjifisher |
Issue fork nodepermissions-3605083
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
Comment #2
benjifisherComment #3
benjifisherComment #4
benjifisherComment #6
benjifisherI used Claude code to write the update function and to do code cleanup. I reviewed all the changes it made.
Comment #7
benjifisherComment #9
benjifisher