Yes, by default only users with capability edit_pages can view the dashboard widget. You can change this role using the filter simple_history/view_history_capability. See for example this for an example: https://ww.wp.xz.cn/support/topic/restrict-history-view-by-role/
No, it doesn’t work.
I can see your plugin widget and page, even with other users.
But it doesn’t give me results.
Screenshot:
https://i.ibb.co/mCF2Xg1/Schermata-2020-09-09-alle-16-48-13.png
These are the results with an admin profile:
https://i.ibb.co/ZdPN7xn/Schermata-2020-09-09-alle-16-48-58.png
Another request for assistance, I entered this code to enable a role for your plugin:
add_filter('simple_history/view_history_capability', function ($role) {
$role = 'editor';
return $role;
});
How do I enable multiple tente roles?
I also tried with a local site.
As administrator I see events, as editor or author I don’t (even if I see the widget).
Same problem.
Hi, can you help me please?
Each logger also have its own capability, so you need to give users access to all loggers. Try this:
add_action('simple_history/loggers_user_can_read/can_read_single_logger', '__return_true', 10, 3);
Thanks a lot. It works!
Fabulous plugin
PS. 5 stars
-
This reply was modified 5 years, 8 months ago by
marcorroma.