Skip to content

Commit

Permalink
fixing linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyakrishnai committed Feb 26, 2024
1 parent b501d5b commit 4720a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/Listeners/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ public function view() {
/**
* Login
*
* @param String $user_login username
* @param String $user_login username
*
* @param WP_User $user logged in user info
*
* @return void
*/
public function login( $user_login, $user ) {
$is_admin = array_key_exists( 'administrator', $user->get_role_caps() );
if ( ( $is_admin && $user->get_role_caps()['administrator']) || ( $user->get_role_caps() && $user->get_role_caps()['manage_options'] ) ) {
if ( ( $is_admin && $user->get_role_caps()['administrator'] ) || ( $user->get_role_caps() && $user->get_role_caps()['manage_options'] ) ) {
$this->push( 'login' );
}
}
Expand Down

0 comments on commit 4720a91

Please sign in to comment.