• MarcLemmens

    (@marclemmens)


    A good plugin, thanks for the good work, but I have the same problem as in this post of a year ago (unresolved). The plugin is automatically displayed on the dashboard of all users. Very useful would be a checkbox for “Administrator only” in the settings page. At this moment also lower level users see when the administrator logged in and what actions he took… and that shocked me a bit.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author eskapism

    (@eskapism)

    Thanks for the review and for the useful feedback. I’m actively working on the next version of Simple History. Hopefully I will have solved some of the issues with capabilties when that version is ready. If your dare, please give it a try and see if the capability things work in a better way in this version: https://github.com/bonny/WordPress-Simple-History/tree/v2

    Thread Starter MarcLemmens

    (@marclemmens)

    I installed version 2, i liked it, the design is much cleaner. For now ‘m gonna keep it installed, but I’m looking forward to a feature that lets only certain users see the History on their dashboard. Thanks!

    you can use role and admin menu editor… they are all both free.

    Hi P?r!
    Thanks a lot for your superbe plugin. Awesome work!
    I totally agree with Marc that a checkbox ?administrator only? would be highly useful and would make your plugin essential.
    Cheers,
    Benjamin

    Plugin Author eskapism

    (@eskapism)

    An update about this:
    Since version 2 of the plugin all users who have access to the plugin does not see everything. For example only admins see plugins installed, users created, and so on. Editors mostly se page/post updates.

    So better by default.

    But you can tell the plugin to even better suit your needs, by using a filter to set a new capability required to view the history page. The default capability needed to view the log is “edit_pages”, meaning that both admins and editors can view the log. But by changing it to “manage_options” only admins will be allowed to view the log.

    Paste this snippet into your functions.php and voila only admins can see the log:

    /**
     * Change capability required to view main simple history page.
     * Default capability is "edit_pages". Change to for example "manage options"
     * to only allow admins to view the history log.
     */
    add_filter("simple_history/view_history_capability", function($capability) {
    
        $capability = "manage_options";
        return $capability;
    
    });

    Thank you, P?r! You are awesome and so is your plugin!
    Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Good plugin but useful only for a 'only admin role' website’ is closed to new replies.