diff --git a/includes/Core/User/User.php b/includes/Core/User/User.php index 7b4a995..224976e 100644 --- a/includes/Core/User/User.php +++ b/includes/Core/User/User.php @@ -93,13 +93,12 @@ public function boot() { * @return bool */ public function can( $permission ) { - // if ( $this->permissions && array_key_exists( $permission, $this->permissions ) ) { - // return true; - // } + $wemail_api_key = get_option( 'wemail_api_key' ); + if ( ! $wemail_api_key ) { + return false; + } return $this->check_user_role( $this->user_id ); - - // return false; } public function check_user_role( $user_id ) {