2008-11-08
jaredm
I couldn't get group permissions to work correctly until I modified this code from inc/auth.php:
===============
389 }else{
390 $regexp = '@ALL';
391 }
===============
to:
===============
389 }elseif ($groups) {
390 if (!in_array('@ALL', $groups)) $groups[] = '@ALL';
391 $regexp = join('|',$groups);
392 }else {
393 $regexp = '@ALL';
394 }
===============
I am using LDAP authentication, by the way. The ACL plugin was passing the group name in $groups and an empty $user parameter to auth_aclcheck(), and the function was returning the permissions for @ALL instead of for the group specified in $groups. Does this make sense or was I really just missing something?
Also, I believe there is a typo in the ACL plugin, admin.php, line 354: $info['groups'] should be $info['grps'].