Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment