Commit 62dba6f10b0bbda63080d866ca036252e5eedb88
1 parent
9d725497
Throwing exception if not logged in
Showing
1 changed file
with
1 additions
and
1 deletions
cpp11/Ice/auth_interceptor/Server.cpp
| ... | ... | @@ -25,7 +25,7 @@ public: |
| 25 | 25 | cout << "Operation: " << c.operation << endl; |
| 26 | 26 | |
| 27 | 27 | if (c.operation == "function") |
| 28 | - if ( (p == c.ctx.end()) || (p->second != _servant->getSecretToken()) ) | |
| 28 | + if ( ((p == c.ctx.end()) || (_servant->getSecretToken() == "")) && (p->second != _servant->getSecretToken()) ) | |
| 29 | 29 | throw Ice::OperationNotExistException(__FILE__, __LINE__); |
| 30 | 30 | return _servant->ice_dispatch(request); |
| 31 | 31 | } | ... | ... |