I found a typing error in function acl_add_user($acl_id, $uid).
Wrong code:
$test_uid = db_result(db_query("SELECT uid FROM {acl_user} WHERE acl_id = $d AND uid = %d ", $acl_id, $uid));

Right code:
$test_uid = db_result(db_query("SELECT uid FROM {acl_user} WHERE acl_id = %d AND uid = %d ", $acl_id, $uid));

Comments

AjK’s picture

Status: Active » Closed (duplicate)

Marking as dup of http://drupal.org/node/124070 as it has a patch in preference too just saying it. If I'd bothered to look I'd have attached the patch to this issue, sorry about that.

@akanashiro: when creating issues, don't "assign" them to yourself, you aren't the one who's going to review / apply it ;)

akanashiro’s picture

Assigned: akanashiro » Unassigned

Oh... the same typing error with acl_remove_user() :-(
bye