Hide user settings if permission is missing
parent
3ba0c0405e
commit
d486a5f61e
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue