Hide user settings if permission is missing

pull/1127/head
Simon Stürz 2025-11-04 16:26:42 +01:00
parent 3ba0c0405e
commit d486a5f61e
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ int UserManager::setUserScopes(const QString &username, int scopes, const QList<
params.insert("scopes", UserInfo::scopesToList(finalScopes)); params.insert("scopes", UserInfo::scopesToList(finalScopes));
if (m_engine->jsonRpcClient()->ensureServerVersion("8.4") && !allowedThingIds.isEmpty()) { if (m_engine->jsonRpcClient()->ensureServerVersion("8.4")) {
QVariantList thingIds; QVariantList thingIds;
foreach (const QUuid &thingId, allowedThingIds) foreach (const QUuid &thingId, allowedThingIds)
thingIds.append(thingId); thingIds.append(thingId);