Update web view with blocked accounts
This commit is contained in:
10
www/User.php
10
www/User.php
@@ -45,6 +45,15 @@ class User
|
||||
return LoadCategory($this, $id);
|
||||
}
|
||||
|
||||
function IsAccountBlocked($id)
|
||||
{
|
||||
foreach($this->accounts as $i => $ac)
|
||||
if ($ac->id == $id)
|
||||
return $ac["blocked"] == "1";
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function GetAccountName($id)
|
||||
{
|
||||
foreach($this->accounts as $i => $account)
|
||||
@@ -54,4 +63,5 @@ class User
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user