mirror of https://github.com/byecorps/id.git
Fix essential security bug
This commit is contained in:
parent
3246a9992d
commit
004009ca51
|
@ -190,10 +190,10 @@ if ($migrated) {
|
||||||
echo "<h2 class=\"subheading\">Admin</h2>";
|
echo "<h2 class=\"subheading\">Admin</h2>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// if ($uri[0] == "admin" && !$user['is_admin']) {
|
if ($uri[0] == "admin" && !$user['is_admin']) {
|
||||||
// http_response_code(401);
|
http_response_code(401);
|
||||||
// die("<img src='https://http.cat/401.jpg' alt='A cat standing in front of a door with a No Cats Allowed sign on it.' />");
|
die("<img src='https://http.cat/401.jpg' alt='A cat standing in front of a door with a No Cats Allowed sign on it.' />");
|
||||||
// }
|
}
|
||||||
|
|
||||||
if ($uri[0] == "docs") {
|
if ($uri[0] == "docs") {
|
||||||
$include = "docs.php";
|
$include = "docs.php";
|
||||||
|
|
Loading…
Reference in New Issue