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:
@@ -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']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user