Commit 829b03f6b9365a305ec246f812ee919ff8429451

Authored by Michael Joseph
1 parent 23a70b82

added authorisation check


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@90 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 8 additions and 2 deletions
dashboard.php
... ... @@ -25,6 +25,12 @@ require_once("./lib/SiteMap.inc");
25 25 // -------------------------------
26 26 // page start
27 27 // -------------------------------
28   -
29   -echo generateLink("LOGOUT") . "logout</a>";
  28 +
  29 +// check if this page is authorised, ie. has come from control.php
  30 +if ($sessionStatus["authorised"]) {
  31 + echo generateLink("LOGOUT") . "logout</a>";
  32 +} else {
  33 + // FIXME: redirect to no permission page
  34 + print "you do not have access to view this page! please go away, and come back when you do.";
  35 +}
30 36 ?>
... ...