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:
cd02b99
)
login: prevent admin contents on profile subpages
author
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 22 Dec 2017 23:16:11 +0000
(
00:16
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 22 Dec 2017 23:59:18 +0000
(
00:59
+0100)
login.php
patch
|
blob
|
history
diff --git
a/login.php
b/login.php
index b0d7c5857006e715cd3a1ea319331929f7fc2fee..714b5c56d096638fb1fb46ac02989ebddd43e238 100644
(file)
--- a/
login.php
+++ b/
login.php
@@
-34,7
+34,7
@@
$part = [
];
print getoutput($part);
-if (!empty($User['admin'])) {
+if (
empty($Args) and
!empty($User['admin'])) {
include_once 'admin/index.html';
include_once 'admin.php';
}