Added comments
Also hiding the mail/age if said so by the user
This commit is contained in:
@@ -8,8 +8,10 @@ require_once ("../../queries/group_member.php");
|
||||
|
||||
require_once("../../queries/user.php");
|
||||
|
||||
// Check if the user is allowed to load them.
|
||||
if (isset($_SESSION["userID"]) &&
|
||||
getRoleByID($_SESSION["userID"]) != 'banned') {
|
||||
// Echo the limited or unlimited groups.
|
||||
if (isset($_POST["limit"])) {
|
||||
echo selectLimitedGroupsFromUser($_SESSION["userID"], (int)test_input($_POST["limit"]));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user