diff --git a/LibServer/Systems/updatecontroller.cpp b/LibServer/Systems/updatecontroller.cpp index 48772bb..ad3d911 100644 --- a/LibServer/Systems/updatecontroller.cpp +++ b/LibServer/Systems/updatecontroller.cpp @@ -45,6 +45,7 @@ void UpdateController::initialize(CommonClientHandler *commonClientHandler,DataP void UpdateController::changeAssetVersion(QString versionName) { //commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY); + bool res = emit signal_BlockAutorization(true, "SERVER", "ChangeAssetVersion"); qDebug() << "UpdateController thread ID " << QThread::currentThreadId(); currentStreamingPath = assetManager->setVersion(versionName); setUpCurrentServerHash(); @@ -53,20 +54,25 @@ void UpdateController::changeAssetVersion(QString versionName) commonClientHandler->sendCurrentVersionToAllClient(); //commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE); + res = emit signal_BlockAutorization(false, "SERVER", "ChangeAssetVersion"); } void UpdateController::createCopyVersion(QString versionName,QString newVersionName,QString author) { //commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY); + bool res = emit signal_BlockAutorization(true, "SERVER", "CreateCopyVersion"); assetManager->createCopyVersion(versionName,newVersionName,author); //commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE); + res = emit signal_BlockAutorization(false, "SERVER", "CreateCopyVersion"); } void UpdateController::deleteAssetVersion(QString versionName) { //commonClientHandler->slot_sendPacketToAllClients(PacketType::BUSY); + bool res = emit signal_BlockAutorization(true, "SERVER", "DeleteAssetVersion"); assetManager->deleteVersion(versionName); //commonClientHandler->slot_sendPacketToAllClients(PacketType::FREE); + res = emit signal_BlockAutorization(false, "SERVER", "DeleteAssetVersion"); } void UpdateController::compareFiles(ClientHandler* handler, QByteArray array)