login/edit: share user override with widget
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 23 Jan 2021 12:30:09 +0000 (13:30 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 23 Jan 2021 12:56:54 +0000 (13:56 +0100)
Fix admin editing of other profiles.

login/edit/index.php

index 2ba0cf38711729942f86ba353ab8db1c59207055..a8684bf6a2d616b9d801a0a2f1ab866dea00ac29 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 if ($Page->path and $User->admin('user')) {
+       global $user;
        $user = new User(strtolower("profile{$Page->path}"), FALSE);
        print $Page->widget('login/admin');
        $Page->title = "Profiel <em>{$user->login}</em>";