Permissions need to be resaved before 6.x-1.2 works for anonymous users. I upgraded only to find that if I was not logged in, I could now see page titles where none should be visible. This was not the case as if I was uid 1. Going to the permissions page, the permissions were set as they should have been, and the module started working correctly after I clicked on "Save Permissions".
I had already run update.php.

Just FYI - it may help others.

Colin

Comments

gabrielu’s picture

Category: support » bug
Status: Active » Needs review

Actually we update permissions manually in the database, is there any guide in how to automatically update permissions from your module? Maybe there is something wrong in our .install file:

function exclude_node_title_update_6001() {
  $items = array();
  $items[] = update_sql("UPDATE {permission} p
    SET p.`perm` = CONCAT(p.`perm`, ' use exclude node title')
    WHERE p.`perm` NOT LIKE '%ignore node title exclusions%'");
  $items[] = update_sql("UPDATE {permission} p
    SET p.`perm` = REPLACE(p.`perm`, 'ignore node title exclusions', '')
    WHERE p.`perm` NOT LIKE '%ignore node title exclusions%'");
  return $items;
}

This only happens when upgrading from 6.x-1.1 to 6.x-1.2

gabrielu’s picture

Status: Needs review » Closed (fixed)

Replaced to:

function exclude_node_title_update_6001() {
  $items = array();
  $items[] = update_sql("UPDATE {permission} p
    SET p.`perm` = CONCAT(p.`perm`, ' , use exclude node title')
    WHERE p.`perm` NOT LIKE '%ignore node title exclusions%'");
  $items[] = update_sql("UPDATE {permission} p
    SET p.`perm` = REPLACE(p.`perm`, ', ignore node title exclusions', '')
    WHERE p.`perm` NOT LIKE '%ignore node title exclusions%'");
  return $items;
}

There was a comma missing. Should be fine on next release.