Сервер общая деавторизация при запуске

This commit is contained in:
krivoshein
2025-01-31 12:35:43 +03:00
parent c46986f9e3
commit d4e7fc871a
4 changed files with 26 additions and 0 deletions

View File

@@ -201,6 +201,27 @@ QString ProviderDBLMS::getNameInstructorByLogin(QString login)
return res;
}
bool ProviderDBLMS::deAuthorizationAll()
{
mtxAccess.lock();
if(! dbLMS->DBisConnected())
{
mtxAccess.unlock();
return false;
}
Q_EMIT signal_BlockAutorization(true);
bool res1 = dbLMS->deAuthorizationAllTrainees();
bool res2 = dbLMS->deAuthorizationAllInstructors();
Q_EMIT signal_BlockAutorization(false);
mtxAccess.unlock();
return res1 && res2;
}
QList<Instructor> ProviderDBLMS::GetListAllInstructors()
{
QList<Instructor> listInstructors;