From 053843f893dd5c96a88e285cf2a5b35419f7dfca Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 31 Aug 2009 18:11:46 +0200 Subject: Immer Authentifizierung fordern --- src/Client/InformationManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Client') diff --git a/src/Client/InformationManager.cpp b/src/Client/InformationManager.cpp index 108a2a5..6ac2647 100644 --- a/src/Client/InformationManager.cpp +++ b/src/Client/InformationManager.cpp @@ -28,7 +28,8 @@ namespace Mad { namespace Client { void InformationManager::DaemonStateUpdateRequestHandler::handleRequest(boost::shared_ptr packet, Common::XmlPacket *ret) { - // TODO Require authentication + if(!getConnection()->isAuthenticated()) + throw(Core::Exception(Core::Exception::PERMISSION)); InformationManager *informationManager = dynamic_cast(*getApplication()).getInformationManager(); -- cgit v1.2.3