WordPress.org

Ready to get started?Download WordPress

Forums

ARYO Activity Log
[resolved] Capability to access the activity log (11 posts)

  1. Handoko
    Member
    Posted 10 months ago #

    What capabilities are needed for accessing the activity log of the user itself and log of all users?

    I set the owner role to able to edit posts, pages and moderate comments. I disabled all the settings that may harm the website. But now he can't access the ARYO Activity Log, he need to able to view the log because it is a multi users site.

    http://wordpress.org/plugins/aryo-activity-log/

  2. Maor Chasen
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Handoko,

    What capabilities are needed for accessing the activity log of the user itself and log of all users?

    The capability a user needs for viewing the dashboard page is edit_pages.

    There is one thing you need to know though. The plugin won't allow a user to see log items for users that have a greater amount of control over the site. That means that, for example, a user with the "Editor" role will not be able to view log items that were logged for a user that has the "Administrator" role.

    Hope I've answered your question. If you're not sure about something, feel free to ask.

  3. Handoko
    Member
    Posted 10 months ago #

    Thanks for the information.

    I'm sorry, on my previous post I mean the owner can edit posts and moderate comments, he can't edit pages. The pages have been configured properly, he should not be allowed to change any of them because many of pages contain shortcodes and php codes which he may not understand.

    I followed your instruction to add edit_page capability for the owner. Yes, now the role can view activity log. But he only can view very limited types of the activity (only attachment and post).

    Wouldn't it be great, if there is a capability, let's say view_all_activity_log capability used for give the user ability to view all the activity log information.

  4. Yakir Sitbon
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Handoko,

    edit_pages cannot change Options / Plugin / Theme or other from this. So in our activity log no have any access for this staff..

    Hmm.. What you say about simple filter and you can control from your theme (or other plugin) with this?

    For example, if you write in your theme this line:
    add_filter( 'aal_is_see_all_activity_log', '__return_true' );

    And everyone can see every staff from this?

  5. Handoko
    Member
    Posted 10 months ago #

    Hi Yakir Sitbon.

    I want to suggest, a capability (for example) called 'view_all_activity_log'. The plugin will show all the log information for users who have view_all_activity_log. If the user doesn't have this capability, it will act as the old way.

    The view_all_activity_log capability will allow user to see all activities of all users (every staff).

    This new feature I suggest, is very useful. For example, you're building a website for an owner who doesn't know much about technical things. You should disable his ability to manage plugins, change settings, changing themes ... and every thing that may ruin the website. He, because is the owner, he should able to view the activity log of all activities of the staffs. It makes sense, right?

  6. Yakir Sitbon
    Member
    Plugin Author

    Posted 10 months ago #

    Hi.

    You say when use have a capability called view_all_activity_log, he can see ALL logs?

  7. Handoko
    Member
    Posted 10 months ago #

    Yes, that is what I want.

    I can use user role management plugin to manually add the capability to the owner.

  8. Yakir Sitbon
    Member
    Plugin Author

    Posted 10 months ago #

    I'll add this in my TODO list.
    Big thanks ! :]

  9. Yakir Sitbon
    Member
    Plugin Author

    Posted 9 months ago #

    Hi Handoko.

    Sorry for your waiting, but I think I get it work.
    I just commit it on our dev repo, so I want to know if it's work fine in your server.

    For register the new caps in your system, you need re-active the plugin.

    The commit:
    https://github.com/KingYes/wordpress-aryo-activity-log/commit/5a5d3898a596d3f2643a31d368f00007392e9bff

  10. Handoko
    Member
    Posted 9 months ago #

    I have downloaded and tested the development version. Everything is working correctly. Thank you very much sir.

  11. Yakir Sitbon
    Member
    Plugin Author

    Posted 9 months ago #

    Thanks for your feedback. I'll publish this soon. :]

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.