Commit 0275bead authored by Adrien Béraud's avatar Adrien Béraud
Browse files

OAuth: invalidate token if current scope was concerned

Change-Id: Iec1bb9a287d97dff8cc4342fe5ebf7d2238f10b4
parent da642afc
......@@ -246,7 +246,7 @@ void
ServerAccountManager::authError(TokenScope scope) {
{
std::lock_guard<std::mutex> lock(tokenLock_);
if (scope >= tokenScope_) {
if (scope <= tokenScope_) {
token_ = {};
tokenScope_ = TokenScope::None;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment