diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-08-31 18:11:46 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-08-31 18:11:46 +0200 |
commit | 053843f893dd5c96a88e285cf2a5b35419f7dfca (patch) | |
tree | 532fbd3d8fb4c86b00427a07907a89f6ef8512a1 /src/Daemon | |
parent | bbb8e9176ced8b4079fcbb208137042ec56c1433 (diff) | |
download | mad-053843f893dd5c96a88e285cf2a5b35419f7dfca.tar mad-053843f893dd5c96a88e285cf2a5b35419f7dfca.zip |
Immer Authentifizierung fordern
Diffstat (limited to 'src/Daemon')
-rw-r--r-- | src/Daemon/RequestHandlers/CommandRequestHandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Daemon/RequestHandlers/CommandRequestHandler.cpp b/src/Daemon/RequestHandlers/CommandRequestHandler.cpp index 9be8a5b..6c245f9 100644 --- a/src/Daemon/RequestHandlers/CommandRequestHandler.cpp +++ b/src/Daemon/RequestHandlers/CommandRequestHandler.cpp @@ -25,7 +25,8 @@ namespace Daemon { namespace RequestHandlers { void CommandRequestHandler::handleRequest(boost::shared_ptr<const Common::XmlPacket> packet, Common::XmlPacket *ret) { - // TODO Require authentication + if(!getConnection()->isAuthenticated()) + throw(Core::Exception(Core::Exception::PERMISSION)); std::string command = packet->get<const std::string&>("command"); |