Update view_log.php

This commit is contained in:
jakani24
2024-01-21 16:50:54 +01:00
parent 533e1cf98e
commit 907dafad48

View File

@@ -43,7 +43,7 @@ if($perms[2]!=="1"){
include "../../../config.php"; include "../../../config.php";
//delete entry if requested and if user has rights to do that //delete entry if requested and if user has rights to do that
if(isset($_GET["delete"])){ if(isset($_GET["delete"])){
if($perms[3]!=="0"){ if($perms[3]!=="1"){
echo '<div class="alert alert-danger" role="alert"> echo '<div class="alert alert-danger" role="alert">
You are not allowed to delete log entrys. (insufficient permissions) You are not allowed to delete log entrys. (insufficient permissions)
</div>'; </div>';
@@ -60,6 +60,9 @@ if($perms[2]!=="1"){
$stmt->execute(); $stmt->execute();
$stmt->close(); $stmt->close();
$conn->close(); $conn->close();
echo '<div class="alert alert-success" role="alert">
Log entry deleted.
</div>';
} }
} }