From 9a6c8727f04095d22a882015d1a4264e2029c3e6 Mon Sep 17 00:00:00 2001 From: "Carl C. Trieloff" Date: Fri, 19 Sep 2008 19:34:53 +0000 Subject: correction to last commit git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@697207 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/acl/AclData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/acl/AclData.cpp b/cpp/src/qpid/acl/AclData.cpp index b9501ce6c1..fce7182140 100644 --- a/cpp/src/qpid/acl/AclData.cpp +++ b/cpp/src/qpid/acl/AclData.cpp @@ -59,7 +59,7 @@ AclResult AclData::lookup(const std::string& id, const Action& action, const Obj if (actionList[action] && actionList[action][objType]){ AclData::actObjItr itrRule = actionList[action][objType]->find(id); - if (itrRule != actionList[action][objType]->end()) + if (itrRule == actionList[action][objType]->end()) itrRule = actionList[action][objType]->find("*"); if (itrRule != actionList[action][objType]->end() ) { @@ -97,7 +97,7 @@ AclResult AclData::lookup(const std::string& id, const Action& action, const Obj if (actionList[action] && actionList[action][objType]){ AclData::actObjItr itrRule = actionList[action][objType]->find(id); - if (itrRule != actionList[action][objType]->end()) + if (itrRule == actionList[action][objType]->end()) itrRule = actionList[action][objType]->find("*"); if (itrRule != actionList[action][objType]->end() ) { -- cgit v1.2.1