aboutsummaryrefslogtreecommitdiff
path: root/user/logout.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 /user/logout.php
parentReports can be bound to bugs (diff)
downloadbugtracker-c86e82354cdafa9aaa785455505a2e8b0ce5fc73.tar.xz
Check can_edit_reports and can_edit_bugs flags
Diffstat (limited to 'user/logout.php')
-rw-r--r--user/logout.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/user/logout.php b/user/logout.php
index 26bbfa0..319a43a 100644
--- a/user/logout.php
+++ b/user/logout.php
@@ -5,6 +5,8 @@ require_once(TEMPLATES_PATH . "/header.php");
session_start();
unset($_SESSION['user_name']);
unset($_SESSION['user_id']);
+unset($_SESSION['user_can_edit_bugs']);
+unset($_SESSION['user_can_edit_reports']);
echo 'Session cleared';
header("Refresh: 2; URL=$_SERVER[HTTP_REFERER]");