Skip to content

Commit

Permalink
Deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Mar 12, 2024
1 parent 19ddc44 commit cea9ec3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions includes/SiteGen/SiteGen.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ private static function check_capabilities() {
$capability = new SiteCapabilities();

$sitegen_enabled = $capability->get( 'hasAISiteGen' );
$ai_enabled = $capability->get( 'canAccessAI' );

return $sitegen_enabled && $ai_enabled;
return $sitegen_enabled;
}

/**
Expand Down
3 changes: 1 addition & 2 deletions includes/Utils/AISearchUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ private static function check_capabilities() {
$capability = new SiteCapabilities();

$help_enabled = $capability->get( 'canAccessHelpCenter' );
$ai_enabled = $capability->get( 'canAccessAI' );

return $help_enabled && $ai_enabled;
return $help_enabled;
}

/**
Expand Down

0 comments on commit cea9ec3

Please sign in to comment.