Skip to content

Commit

Permalink
Remove the elevated_role meta check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 authored Oct 2, 2024
1 parent 2667931 commit 0ee5248
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wporg-two-factor.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,7 @@ function user_requires_2fa( $user ) : bool {
// Is (or was) a plugin committer
$user->has_plugins ||
// Has (or had) a live theme
$user->has_themes /* ||
// Has (or had) an elevated role on a site (WordPress.org, BuddyPress.org, bbPress.org, WordCamp.org)
$user->has_elevated_role */
$user->has_themes
) {
return true;
}
Expand Down

0 comments on commit 0ee5248

Please sign in to comment.