diff --git a/dashboard.php b/dashboard.php index 6f0e816..d994d96 100644 --- a/dashboard.php +++ b/dashboard.php @@ -25,6 +25,12 @@ require_once("./lib/SiteMap.inc"); // ------------------------------- // page start // ------------------------------- - -echo generateLink("LOGOUT") . "logout"; + +// check if this page is authorised, ie. has come from control.php +if ($sessionStatus["authorised"]) { + echo generateLink("LOGOUT") . "logout"; +} else { + // FIXME: redirect to no permission page + print "you do not have access to view this page! please go away, and come back when you do."; +} ?>