Closed (fixed)
Project:
User Alert
Version:
7.x-1.6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
24 Feb 2012 at 16:27 UTC
Updated:
15 Mar 2012 at 16:50 UTC
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
Comment #1
kevinquillen commentedThanks, will make the change.
Comment #2
kevinquillen commentedCommitted to 1.7.
Comment #3
kevinquillen commented