Skip to content

Commit

Permalink
Remove el_view_email_log_capability filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Daniel Deepak committed Sep 12, 2017
1 parent 9e9d259 commit 4e74751
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions include/Core/Request/LogListAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,6 @@ public function load() {
* @since 1.6
*/
public function view_log_message() {
/**
* Filters the User capability to View Email Log content.
*
* Refer User Capabilities at
* @link https://codex.wordpress.org/Roles_and_Capabilities#Capabilities
*
* @since 2.0.0
*
* @param string $user_capability User capability to view Log content.
*/
$view_email_log_capability = apply_filters( 'el_view_email_log_capability', 'manage_options' );

if ( \EmailLog\Util\can_current_user_view_email_log() ) {
$id = absint( $_GET['log_id'] );

Expand Down

0 comments on commit 4e74751

Please sign in to comment.