At least I think so. This is my first post to the site, and I'm working on a deadline to get my project up and running. I came across an issue that I think is a bug in the Simple Access code. I'm sorry if it's already been reported/fixed in the developement version.
In the function : simple_access_groups_check_user, the line
return array_intersect(array_filter($groups, $user_groups));
should be (I think anyhow) :
return array_intersect(array_filter($groups), $user_groups);
Assuming that the programmer input needs to be filtered then intersected against the programatically loaded groups. I'm very new to Drupal, so I'm not sure if that function is ever called or not. However I'm writting some custom code in my project and found calling that function useful to pruning down a list of files based on access settings. The code (as originally written) calls out an error about the 2nd paramater (if supplied) to array_filter needing to be a callback function.
Comments
Comment #1
gordon commentedFixed and committed to dev