2012-04-15, 06:08 PM
Hi,
today I noticed that normal Moderators (not Super Moderators) can't see the notice in the header when someone has reported a post. Moderators can still manage reports directly in the ModCP, but just can't see the notice.
I dug around in the global.php and found this piece of code:
According to the first note normal moderators should be able to see the notice. But they can't see it. However if I comment out /*$mybb->user['ismoderator'] &&*/ then moderators can see the notices.
So my question is, is this a bug or an intended feature?
Nearly 400 views and no answer? Why is that?
today I noticed that normal Moderators (not Super Moderators) can't see the notice in the header when someone has reported a post. Moderators can still manage reports directly in the ModCP, but just can't see the notice.
I dug around in the global.php and found this piece of code:
$unreadreports = '';
// This user is a moderator, super moderator or administrator
if($mybb->usergroup['cancp'] == 1 || $mybb->user['ismoderator'] && $mybb->usergroup['canmodcp'])
{
// Read the reported posts cache
$reported = $cache->read("reportedposts");
// 0 or more reported posts currently exist
if($reported['unread'] > 0)
{
if($reported['unread'] == 1)
{
$lang->unread_reports = $lang->unread_report;
}
else
{
$lang->unread_reports = $lang->sprintf($lang->unread_reports, $reported['unread']);
}
eval("\$unreadreports = \"".$templates->get("global_unreadreports")."\";");
}
}
According to the first note normal moderators should be able to see the notice. But they can't see it. However if I comment out /*$mybb->user['ismoderator'] &&*/ then moderators can see the notices.
So my question is, is this a bug or an intended feature?
Nearly 400 views and no answer? Why is that?