Skip to content

Commit

Permalink
Update WordPressAPI.php
Browse files Browse the repository at this point in the history
Fix empty settings page for users with `manage_options` capability (cloudflare#544).
  • Loading branch information
rvdsteege committed Jul 29, 2024
1 parent 58db13b commit 4a42874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WordPress/WordPressAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,6 @@ public function checkIfValidCloudflareSubdomain($response, $domainName)
*/
public function isCurrentUserAdministrator()
{
return $this->wordPressWrapper->currentUserCan('administrator');
return $this->wordPressWrapper->currentUserCan('manage_options');
}
}

0 comments on commit 4a42874

Please sign in to comment.