user group statistics can now only read statistics
This commit is contained in:
@@ -24,9 +24,13 @@
|
||||
echo "<a href=\"mannschaft.php\">Mannschaftsverwaltung</a>\n";
|
||||
echo "<a href=\"stationen.php\">Stationen</a>\n";
|
||||
}
|
||||
if ($_SESSION['user_group'] == 'statistics') {
|
||||
echo "<a href=\"statistik.php\">Ergebnisse</a>";
|
||||
} else {
|
||||
echo "<a href=\"statistik.php\">Ergebnisse eintragen</a>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<a href="statistik.php">Ergebnisse eintragen</a>
|
||||
</nav>
|
||||
</section>
|
||||
</header>
|
||||
@@ -39,14 +39,14 @@
|
||||
echo "</select>
|
||||
</form>";
|
||||
}
|
||||
if($session != "total-score" && get_teams_no_points($con, $session)->rowCount() > 0) {
|
||||
if($session != "total-score" && get_teams_no_points($con, $session)->rowCount() > 0 && $user_data['user_group'] != 'statistics') {
|
||||
echo "<form action=\"add_entry.php\" method=\"get\">
|
||||
<input type=\"hidden\" name=\"station\" value=\"$session\"/>
|
||||
<input type=\"submit\" value=\"Ergebniss eintragen\"/>
|
||||
</form>\n";
|
||||
}
|
||||
|
||||
if ($session != "total-score") {
|
||||
if ($session != "total-score" && $user_data['user_group'] != 'statistics') {
|
||||
//add edit button
|
||||
echo "<div>
|
||||
<form action=\"edit_statistics.php\" method=\"get\">
|
||||
|
||||
Reference in New Issue
Block a user