From 4ba70853cba84bda414a2ca2311630efa30111c2 Mon Sep 17 00:00:00 2001 From: krivoshein Date: Thu, 22 Jan 2026 10:27:05 +0300 Subject: [PATCH] =?UTF-8?q?UpdateController=20=D0=B2=D0=B5=D1=80=D0=BD?= =?UTF-8?q?=D1=83=D0=BB=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=BA=D1=83=20=D0=BE=D1=82=20SERVER?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LibServer/Systems/updatecontroller.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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)