Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293850

User AccountForm.php sets $admin var but doesn't use (PATCH INSIDE)

$
0
0

On line 72 of: core/modules/user/src/AccountForm.php it sets:
$admin = $user->hasPermission('administer users');
then it uses it in several places, but misses opportunity in 2 other places, and just calls the hasPermisison() method again instead.

Patch in next comment. This is against 8.3.x, but I can also roll one for 8.4.x if I need to.


Viewing all articles
Browse latest Browse all 293850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>