In order to allow content access modules to interact with user_alert module, a change has to be made on user_alert.module.

Lines 167-170:

foreach ($result as $record) {
		$alert = node_load($record->nid);
		$output .= theme('user_alert', array('node' => $alert));
	}

must be replaced with these:

	foreach ($result as $record) {
                $alert = node_load($record->nid);      
                      if (node_access('view',$alert)) {
                        $output .= theme('user_alert', array('node' => $alert));
                       }
	}
	return $output;

In this way, you can choose which roles on your site can see your user_alert.

Comments

kevinquillen’s picture

Assigned: Unassigned » kevinquillen

Thanks, will make the change.

kevinquillen’s picture

Committed to 1.7.

kevinquillen’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.