Add permission to compare node revisions

Created on 23 January 2015, almost 10 years ago
Updated 16 December 2024, 5 days ago

I'm needing to remove the revision comparison button to some user roles, but there is no option for that. In diff_menu() the 'access callback' points to this function:

function diff_node_revision_access($node, $op = 'view') {
  $may_revision_this_type = variable_get('diff_enable_revisions_page_node_' . $node->type, TRUE) || user_access('administer nodes');
  return $may_revision_this_type && _node_revision_access($node, $op);
}

Instead maybe we should create a new permission.

Feature request
Status

Closed: outdated

Version

3.0

Component

Code

Created by

🇧🇷Brazil tregismoreira

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.

Production build 0.71.5 2024