git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34e9faa
)
login/edit: share user override with widget
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 23 Jan 2021 12:30:09 +0000
(13:30 +0100)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/login/edit/index.php
b/login/edit/index.php
index 2ba0cf38711729942f86ba353ab8db1c59207055..a8684bf6a2d616b9d801a0a2f1ab866dea00ac29 100644
(file)
--- a/
login/edit/index.php
+++ b/
login/edit/index.php
@@
-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>";