Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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']];
}
}
}
Comment | File | Size | Author |
---|---|---|---|
tac_lite.module.diff | 720 bytes | Miguel Andrade |
Comments
Comment #2
m.roma CreditAttribution: m.roma commentedDo you mean that the access by taxonomy for an individual user wasn't working and this solved that issue?
Comment #3
grndlvl CreditAttribution: grndlvl at Zivtech commented