Fix algorithm that determite document is locked
Fix algorithm that determite document is locked

KlubJagiellonski/pola-backend,KlubJagiellonski/pola-backend,KlubJagiellonski/pola-backend,KlubJagiellonski/pola-backend