Fix permissions on unauthenticated connections

pull/748/head
Michael Zanetti 2022-01-12 12:02:42 +01:00
parent 8db2d40ae6
commit d414df1e02
1 changed files with 1 additions and 1 deletions

View File

@ -766,7 +766,7 @@ void JsonRpcClient::helloReply(int /*commandId*/, const QVariantMap &params)
}
// qDebug() << "Caches:" << m_cacheHashes;
if (m_jsonRpcVersion.majorVersion() >= 6) {
if (m_jsonRpcVersion.majorVersion() >= 6 && m_authenticationRequired) {
m_permissionScopes = UserInfo::listToScopes(params.value("permissionScopes").toStringList());
} else {
m_permissionScopes = UserInfo::PermissionScopeAdmin;