Hi,
We’re looking into this. It might be a bug.
Thanks,
Camu
Please keep in mind that if those authors are also admins, this will override the filter, as admins are allowed to see everything:
if (wp_slimstat::$options['restrict_authors_view'] == 'yes' && !current_user_can('manage_options')){
$filters[] = 'author equals '.$GLOBALS['current_user']->user_login;
self::$hidden_filters['author'] = 1;
}
If that’s not the case, could you please enable debug mode in Settings > Advanced and paste the SQL generated for the Real Time report?
Hi,
Thanks for the response. The users are at the ‘editor’ level of WordPress, they are not admins.
Is this the SQL you’re looking for? Got it from the Real Time page after enabling debug mode.
SELECT t1.*, tb.browser,tb.version,tb.platform,tb.css_version,tb.type,tb.user_agent,tci.content_type,tci.category,tci.author,tci.content_id,tob.outbound_domain,tob.outbound_resource FROM wp_slim_stats t1 INNER JOIN wp_slim_browsers tb ON t1.browser_id = tb.browser_id INNER JOIN wp_slim_content_info tci ON t1.content_info_id = tci.content_info_id LEFT JOIN wp_slim_outbound tob ON t1.id = tob.id WHERE t1.id <> 0 AND (t1.dt BETWEEN 1417392000 AND 1418645151) ORDER BY t1.dt desc LIMIT 0, 50
SELECT COUNT(*) counthits FROM wp_slim_stats t1 INNER JOIN wp_slim_browsers tb ON t1.browser_id = tb.browser_id INNER JOIN wp_slim_content_info tci ON t1.content_info_id = tci.content_info_id LEFT JOIN wp_slim_outbound tob ON t1.id = tob.id WHERE 1=1 AND (t1.dt BETWEEN 1417392000 AND 1418645151)
What version of Slimstat are you using? Do you have any add-ons active? Do your editors have the capability to ‘manage_options’ (via a custom Role Manager plugin or something?)
Version 3.8.5. No other add ons. Yes, they have the manage_options capability activated. Thanks!
That explains why. “Manage options” is the capability that overrides the other setting, since by default those who have that capability are considered administrators.
http://codex.ww.wp.xz.cn/Roles_and_Capabilities#Administrator