Skip to content
Permalink
Browse files Browse the repository at this point in the history
Add missing authorization checking in Helper::flushPageCache()
  • Loading branch information
JonMagon committed Sep 4, 2022
1 parent 5931633 commit 3c90083
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/helper.cpp
Expand Up @@ -190,6 +190,10 @@ void Helper::startBenchmarkTest(int measuringTime, int fileSize, int randomReadP

QVariantMap Helper::flushPageCache()
{
if (!isCallerAuthorized()) {
return {};
}

QVariantMap reply;
reply[QStringLiteral("success")] = true;

Expand Down

0 comments on commit 3c90083

Please sign in to comment.