diff options
| author | Carl C. Trieloff <cctrieloff@apache.org> | 2008-09-04 20:07:49 +0000 |
|---|---|---|
| committer | Carl C. Trieloff <cctrieloff@apache.org> | 2008-09-04 20:07:49 +0000 |
| commit | cc499337df76073192a925366aecfb3675a1dfc9 (patch) | |
| tree | efdd2353e4eee5e2e73cbe7f2885e450f1332267 /cpp/src/qpid/acl/Acl.cpp | |
| parent | 146561bc24885f32d7d7ed1b3d60e66e843fe6a4 (diff) | |
| download | qpid-python-cc499337df76073192a925366aecfb3675a1dfc9.tar.gz | |
QPID-107 swap the enforce defualt to ACL has to be turned on. So defualt install can do something...
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@692217 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/acl/Acl.cpp')
| -rw-r--r-- | cpp/src/qpid/acl/Acl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/acl/Acl.cpp b/cpp/src/qpid/acl/Acl.cpp index f4ed9834d9..982b9e3bb0 100644 --- a/cpp/src/qpid/acl/Acl.cpp +++ b/cpp/src/qpid/acl/Acl.cpp @@ -43,7 +43,7 @@ using namespace std; bool Acl::authorise(const std::string& id, const Action& action, const ObjectType& objType, const std::string& name, std::map<Property, std::string>* params) { - if (aclValues.noEnforce) return true; + if (!aclValues.enforce) return true; boost::shared_ptr<AclData> dataLocal = data; //rcu copy // add real ACL check here... @@ -55,7 +55,7 @@ using namespace std; bool Acl::authorise(const std::string& id, const Action& action, const ObjectType& objType, const std::string& ExchangeName, const std::string& RoutingKey) { - if (aclValues.noEnforce) return true; + if (!aclValues.enforce) return true; boost::shared_ptr<AclData> dataLocal = data; //rcu copy // only use dataLocal here... |
