Skip to content

Commit

Permalink
Fix empty settings page for users with manage_options capability an…
Browse files Browse the repository at this point in the history
…d no administrator role (cloudflare#544).
  • Loading branch information
rvdsteege committed Jul 29, 2024
1 parent 58db13b commit 2ab6bb4
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 2ab6bb4

Please sign in to comment.