Browse Source

fleat:update $_SESSION['em_role']

igb 1 month ago
parent
commit
047ed4a087
1 changed files with 2 additions and 0 deletions
  1. 2 0
      teamSeas.php

+ 2 - 0
teamSeas.php

@@ -44,6 +44,8 @@ if (!empty($filterBelong)) {
 $keys = urlencode($keys);
 $hrefstr = "?keys=" . $keys;
 
+$_SESSION['em_role'] = $_SESSION['em_role'] ?? 0;
+
 if ($_SESSION['em_role'] == 0) {
     $memberStr = "SELECT id FROM employee WHERE em_role=" . $_SESSION['employee_id'] . " OR id=" . $_SESSION['employee_id'];
 } else {