Updated to support a demo user

This commit is contained in:
Neil Lathwood
2015-02-16 23:45:28 +00:00
parent f0b0ed4468
commit 2cb5d727b4
20 changed files with 57 additions and 35 deletions

View File

@@ -27,7 +27,7 @@ echo '<div class="table-responsive">
</tr>';
echo ('<td colspan="5">');
if ($_SESSION['userlevel'] == '10') {
if ($_SESSION['userlevel'] >= '10') {
echo('<button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#create-alert" data-device_id="'. $device['device_id'] .'">Create new alert rule</button>');
}
echo ('</td>
@@ -96,7 +96,7 @@ foreach( dbFetchRows($full_query, $param) as $alert ) {
}
echo "</td>";
echo "<td>";
if ($_SESSION['userlevel'] == '10') {
if ($_SESSION['userlevel'] >= '10') {
$ack_ico = 'volume-up';
$ack_col = 'success';
if(in_array($alert['state'],array(2,3,4))) {