When defining per-user tac permissions, nothing happens and users lose their groups.

We've investigated a little, but I Don't know where the problem comes from, maybe changes to the core?
Anyway, we did a quick patch to fix it. Please use with caution as we didn't investigate the problem origin thoroughly.

Just to lines changed, so maybe you can patch by hand.

 function tac_lite_user_presave(&$edit, $account, $category) {
   // Only proceed if we are in the tac_lite category.
-  if ($category == 'tac_lite'){
+  if ($account->user_category == 'tac_lite'){
     // Go through each scheme and copy the form value into the data element
     for ($i = 1; $i <= variable_get('tac_lite_schemes', 1); $i++) {
       $config = _tac_lite_config($i);
       if ($config['name']) {
-        $edit['data'][$config['realm']] = $edit[$config['realm']];
+        $edit['data'][$config['realm']] = $_POST[$config['realm']];
       }
     }
   }
CommentFileSizeAuthor
tac_lite.module.diff720 bytesMiguel Andrade
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Miguel Andrade created an issue. See original summary.

m.roma’s picture

Do you mean that the access by taxonomy for an individual user wasn't working and this solved that issue?

grndlvl’s picture

Status: Active » Closed (cannot reproduce)