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

    (@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 eskapism

    (@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.