I don't want users to change "Role based access control settings", only "User based access control settings"

How can I do this? I tried commenting "content_access_role_based_form" calls, but I get a bunch of errors:

warning: array_filter() [function.array-filter]: The first argument should be an array in /var/www/drupal2/sites/all/modules/content_access/content_access.admin.inc on line 71.

Cheers,
Yonas

Comments

fizk’s picture

I also had to comment that section of code:

/*

foreach (_content_access_get_operations() as $op) {
    // Set the settings so that further calls will return this settings.
    $settings[$op] = array_keys(array_filter($form_state['values'][$op]));
  }
  // Save per-node settings.
  content_access_save_per_node_settings($node, $settings);

*/
fizk’s picture

Status: Active » Closed (fixed)