Skip to content

Commit

Permalink
Remove hardcoded capability check
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Aug 20, 2024
1 parent 4b11291 commit cc18c5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/SiteGen/SiteGen.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ class SiteGen {
* Function to check capabilities
*/
private static function check_capabilities() {
return true;
$capability = new SiteCapabilities();
$sitegen_enabled = $capability->get( 'hasAISiteGen' );
return $sitegen_enabled;
}

/**
Expand Down

0 comments on commit cc18c5c

Please sign in to comment.