• Resolved Timo Schneider

    (@stamm-wikinger)


    Hi,

    does somebody knows, how i could edit the capabilities?
    For example, i want my author just see their own activities, but my editors should see everything.

    For more comfortable editing, it would be nice, if simplehistory would support UserRoleEditor (or some comparable plugin).

    Thanks
    Timo

    https://www.ads-software.com/plugins/simple-history/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author P?r Thernstr?m

    (@eskapism)

    Hi,

    This should be possible, but it needs a bit of work.

    It’s not as easy as just giving someone with a specific capability access or no access, for this to work we need to check the log on a row level.

    You need to modify the SQL that is used to fetch the logged events from the database. At the moment there is no filter for this, but I can make sure it exists in the next version.

    Plugin Author P?r Thernstr?m

    (@eskapism)

    Oh, I think I was actually wrong. There is already a filter for this:

    /**
    		 * Filter the sql template where clause
    		 *
    		 * @since 2.0
    		 *
    		 * @param string $where
    		 */
    		$where = apply_filters("simple_history/log_query_sql_where", $where);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editing capabilities’ is closed to new replies.