diff --git a/modules/user/user.module b/modules/user/user.module index c02717bbea855db67281ac791d489ef24657a94d..3ce08310073aec7d927eb4f52a8b7775952fc4ef 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -2407,6 +2407,7 @@ function user_build_filter_query() { // This checks to see if this permission filter is an enabled permission for the authenticated role. // If so, then all users would be listed, and we can skip adding it to the filter query. if ($key == 'permission') { + $account = new StdClass(); $account->uid = 'user_filter'; $account->roles = array(DRUPAL_AUTHENTICATED_RID => 1); if (user_access($value, $account)) {