From d486a5f61e2a752cd23a95f9b76e1bee8619f17c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 4 Nov 2025 16:26:42 +0100 Subject: [PATCH] Hide user settings if permission is missing --- libnymea-app/usermanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnymea-app/usermanager.cpp b/libnymea-app/usermanager.cpp index c3d1b2a0..828cdfbe 100644 --- a/libnymea-app/usermanager.cpp +++ b/libnymea-app/usermanager.cpp @@ -160,7 +160,7 @@ int UserManager::setUserScopes(const QString &username, int scopes, const QList< params.insert("scopes", UserInfo::scopesToList(finalScopes)); - if (m_engine->jsonRpcClient()->ensureServerVersion("8.4") && !allowedThingIds.isEmpty()) { + if (m_engine->jsonRpcClient()->ensureServerVersion("8.4")) { QVariantList thingIds; foreach (const QUuid &thingId, allowedThingIds) thingIds.append(thingId);