Added comments

Also hiding the mail/age if said so by the user
This commit is contained in:
Lars van Hijfte
2017-02-02 10:29:49 +01:00
parent 0546b8689d
commit 60b55b3f04
15 changed files with 74 additions and 15 deletions

View File

@@ -6,6 +6,7 @@ require_once ("../../queries/connect.php");
require_once ("../../queries/friendship.php");
require_once ("../../queries/user.php");
// Check if the user is allowed to load them.
if (isset($_SESSION["userID"]) &&
getRoleByID($_SESSION["userID"]) != 'frozen' &&
getRoleByID($_SESSION["userID"]) != 'banned') {