Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
Fixed adminEnabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
breadtf authored Jun 26, 2023
1 parent a4df26c commit d2512cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
</div>
<div class="wrapper">
<?php
if ($_SESSION['admin'] == true) {
if ($_SESSION['admin'] == true and $configs["adminEnabled"] === true) {
echo "<a href='admin/'>Admin panel</a>";
}
?>
Expand Down

0 comments on commit d2512cc

Please sign in to comment.