Wrong number of reports shown to Local moderators

Started by Vasya Pupkin, April 08, 2011, 10:17:21 PM

Previous topic - Next topic

Vasya Pupkin

Board (local) moderators can only see reports from their boards in moderation center, but in forum header they see a total number of reports from all boards.
String: There are currently ... moderator reports open.

Illori

what version of smf are you running? what mods do you have installed?

Vasya Pupkin

Quote from: Illori on April 09, 2011, 06:24:25 AM
what version of smf are you running? what mods do you have installed?
SMF 2.0 RC5, default template
Mods:
Advanced Reputation System
SimpleSEF

The counter is placed in function recountOpenReports() in file Sources/ModerationCenter.php and it doesn't depend on mods installed.

Illori

have you added this code or did it already exist in your index.template.php?

Arantor

No, this is a bug, the count of open reports is global, it never runs an extra query to grab boards that the current user is moderator for.
Holder of controversial views, all of which my own.


Joker™

Strangely to me on my test forum the number of reports to each mod is getting display exactly it should be.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Illori


emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: