Skip to content

Commit

Permalink
Fix calling primary auth plugin's canDo() in modifyUser()
Browse files Browse the repository at this point in the history
Funny no one has noticed this over all the years but well, here's
another bug fixed.
  • Loading branch information
pief committed Sep 20, 2023
1 parent 1439899 commit ead55c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth.php
Expand Up @@ -485,7 +485,7 @@ public function modifyUser($user, $changes) {
elseif ( ($field == 'login') || ($field == 'name') || ($field == 'mail') ) {
/* If the primary auth plugin supports the update,
we'll try it there first. */
if ($this->authplugins['primary']->canDo['mod' . ucfirst($field)]) {
if ($this->authplugins['primary']->canDo('mod' . ucfirst($field))) {
$result = $this->authplugins['primary']->modifyUser(
$user, array(
$field => $value
Expand Down

0 comments on commit ead55c7

Please sign in to comment.