login: prevent admin contents on profile subpages
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 22 Dec 2017 23:16:11 +0000 (00:16 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 22 Dec 2017 23:59:18 +0000 (00:59 +0100)
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';
 }