2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Added error message when not an operator and trying to add a shift

This commit is contained in:
azammitdcarf
2010-01-27 00:24:50 +00:00
parent 50020ead94
commit c174aab40b

View File

@@ -82,6 +82,14 @@ $woy = $y['y'];
$operator_id = get_operator_id();
if (!$operator_id)
{
xhtml_head(T_("Add shifts"));
print "<p>" . T_("You must be an operator (as well as have administrator access) to add/edit shifts") . "</p>";
xhtml_foot();
exit();
}
if (isset($_POST['submit']))
{