private function cleanRights(User $user)
    {
        foreach ([
            'DELETE FROM `basusr` WHERE usr_id = :usr_id',
            'DELETE FROM `sbasusr` WHERE usr_id = :usr_id',
        ] as $sql) {
            $stmt = $this->appboxConnection->prepare($sql);
            $stmt->execute([':usr_id' => $user->getId()]);
            $stmt->closeCursor();
        }
    }
private function cleanRights(User $user)
    {
        foreach ([
            'DELETE FROM `basusr` WHERE usr_id = :usr_id',
            'DELETE FROM `sbasusr` WHERE usr_id = :usr_id',
        ] as $sql) {
            $stmt = $this->appboxConnection->prepare($sql);
            $stmt->execute([':usr_id' => $user->getId()]);
            $stmt->closeCursor();
        }
    }
private function cleanRights ( User $ user ) { foreach ( [ 'DELETE FROM `basusr` WHERE usr_id = :usr_id' , 'DELETE FROM `sbasusr` WHERE usr_id = :usr_id' , ] as $ sql ) { $ stmt = $ this -> appboxConnection -> prepare ( $ sql ) ; $ stmt -> execute ( [ ':usr_id' => $ user -> getId ( ) ] ) ; $ stmt -> closeCursor ( ) ; } }
Removes all user's rights.

@param User $user
Removes all user s rights .