Support for Forum Access and other modules using Chain Menu Access

Created on 1 October 2018, over 6 years ago
Updated 26 August 2023, over 1 year ago

In Drupal 6, we used the old Comment Edited module ( https://www.drupal.org/project/comment_edited ) to accomplish what Edit Limit does. Comment Edited and Forum Access worked well together and caused no conflicts.

With Drupal 7, Forum Access has taken a very different approach to editing comments. It now uses the Chain Menu Access API module ( https://www.drupal.org/project/chain_menu_access ), which is not compatible with simply overriding menu items through hook_menu_alter. Using this setup, "edit own comments" in Forum Access is an ignored permission.

The attached patch adds support for Forum Access, and can easily be extended to provide support for any access module using Chain Menu Access. Please review.

Also review the patch I created for hook_node_access ( https://www.drupal.org/project/edit_limit/issues/2448027 ), since both modify the edit_limit_menu_alter function. My hope would be we can commit each of them. Thanks.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇺🇸United States ron_s

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States ron_s

    As part of the recent security updates, the Forum Access module was changed to require chain_menu_access 7.x-2.1 ( https://www.drupal.org/project/forum_access/issues/3375942 📌 Require chain_menu_access 7.x-2.1 Fixed ). Because of this change, the forum_access_requirements function was removed.

    Patch #5 used forum_access_requirements to check for the current chain_menu_access version, so it needs to be updated to avoid an error. Attached is a new version that takes into account the changes in Issue #3375942.

  • Status changed to Closed: outdated 13 days ago
  • ivnish Kazakhstan

    Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.

Production build 0.71.5 2024