diff --git a/out.php b/out.php index 1e32576..8fe61fe 100644 --- a/out.php +++ b/out.php @@ -3,10 +3,13 @@ include_once "inc/attendancelog.php"; global $DB; if (isset($_SESSION['user']['fio'])){ -// $class = new attendancelog($DB, $_SESSION['user']['fio']); $class = new attendancelog($DB, $_SESSION['user']['fio']); - $OUT = $class->HTML(); - + $dostup = $class->currentUserInfo(); + if($dostup != 0){ + $OUT = $class->HTML(); + }else{ + $OUT = '

У вас нет доступа к модулю!

'; + } } else { }