Skip to content

Commit

Permalink
Update route.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joepdooper committed Feb 27, 2024
1 parent 6c89e8a commit 2d3d0bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/include/route.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
header('location:' . _BASE_PATH);
exit();
}
} else {
if(!in_array($id,['register','login','reset'])){
header('location:' . _BASE_PATH . 'admin/login');
exit();
}
}
});

Expand Down

0 comments on commit 2d3d0bf

Please sign in to comment.