diff --git a/framework/core/src/Core/Search/User/Gambit/EmailGambit.php b/framework/core/src/Core/Search/User/Gambit/EmailGambit.php index b175b6193..4f8d1254d 100644 --- a/framework/core/src/Core/Search/User/Gambit/EmailGambit.php +++ b/framework/core/src/Core/Search/User/Gambit/EmailGambit.php @@ -42,7 +42,7 @@ class EmailGambit extends AbstractRegexGambit */ public function apply(AbstractSearch $search, $bit) { - if (! $search->getActor()->isAdmin()) { + if (! $search->getActor()->hasPermission('user.edit')) { return false; }