src/Pyrite/ACL.php
public static function banUser($id)
    {
        global $PPHP;
        $db = $PPHP['db'];
        $db->exec("DELETE FROM acl_users WHERE userId=?", array($id));
        $db->exec("DELETE FROM users_roles WHERE userId=?", array($id));
        return true;
    }
public static function banUser($id)
    {
        global $PPHP;
        $db = $PPHP['db'];
        $db->exec("DELETE FROM acl_users WHERE userId=?", array($id));
        $db->exec("DELETE FROM users_roles WHERE userId=?", array($id));
        return true;
    }
public static function banUser ( $ id ) { global $ PPHP ; $ db = $ PPHP [ 'db' ] ; $ db -> exec ( "DELETE FROM acl_users WHERE userId=?" , array ( $ id ) ) ; $ db -> exec ( "DELETE FROM users_roles WHERE userId=?" , array ( $ id ) ) ; return true ; }
When a user is banned, remove it from all ACL tables

@param int $id User ID

@return bool Success of the underlying operations
When a user is banned remove it from all ACL tables