Are there plans to port this mod to 4.7?

This is a cosy mod particularly usefull for role/subscriptions based sites and not only.

Thank you

Comments

marcoBauli’s picture

Well, testing it on 4.7 looks like it pretty works, except that it does not list 'authenticated' users only..

venkat-rk’s picture

Strange, because I was thinking of raising this issue myself. This has been such a useful module that it would be wonderful to have this for 4.7 also.

drupal777’s picture

I *think* the following updates this module for 4.7. I'm too new to Drupal to make a claim like that without qualification. It appears that 4.7 no longer stores the rid on a per user basis for the "authenticated user" in the users_roles table. Therefore, replacing the following line:

$sql = 'SELECT u.* FROM {users_roles} r INNER JOIN {users} u ON r.uid = u.uid WHERE r.rid = '.$rid;

with the following code:

   if ($rid == 2) {
         $sql = 'SELECT u.* FROM {users} u WHERE u.uid!=0';
     }
   else {
        $sql = 'SELECT u.* FROM {users_roles} r INNER JOIN {users} u ON r.uid = u.uid WHERE r.rid = '.$rid;
    }

will restore the ability to display all users in the authenticated user column of the By Roles view.

Please post if you find that this does not work for your 4.7.

Mike

marcoBauli’s picture

The patch above happily works for me on 4.7.1 :)