Frozen users cant chat with other people

This commit is contained in:
Lars van Hijfte
2017-01-31 14:26:34 +01:00
parent 2dd7dd8140
commit 164eb2dde6
7 changed files with 40 additions and 17 deletions

View File

@@ -19,9 +19,9 @@
include_once ("../queries/user.php");
// auth
$userinfo = getRoleByID($_SESSION['userID'])->fetch(PDO::FETCH_ASSOC);
$role = getRoleByID($_SESSION['userID']);
if ($userinfo['role'] != 'admin' AND $userinfo['role'] != 'owner') {
if ($role != 'admin' AND $role != 'owner') {
header("location:profile.php");
}