aboutsummaryrefslogtreecommitdiff
path: root/bug/edit.php
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-04-30 10:15:25 +0300
committerAqua-sama <aqua@iserlohn-fortress.net>2021-04-30 10:15:25 +0300
commitc86e82354cdafa9aaa785455505a2e8b0ce5fc73 (patch)
tree0135ef69eda1d871e940b1ad42d2166d9c1d8c9c /bug/edit.php
parentReports can be bound to bugs (diff)
downloadbugtracker-c86e82354cdafa9aaa785455505a2e8b0ce5fc73.tar.xz
Check can_edit_reports and can_edit_bugs flags
Diffstat (limited to 'bug/edit.php')
-rw-r--r--bug/edit.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/bug/edit.php b/bug/edit.php
index ad1ea36..9aaac38 100644
--- a/bug/edit.php
+++ b/bug/edit.php
@@ -27,6 +27,11 @@ if($id != "") {
$submitter = $result['submitter'];
$description = $result['description'];
}
+
+if(!$_SESSION['user_can_edit_bugs'] || ($submitter != $_SESSION['user_name'])) {
+ echo "You cannot edit bugs!";
+ goto footer;
+}
?>
<form action="update.php?id=<?php echo $id; ?>" method="post">