+ McpAccountManagerUoa *self = (McpAccountManagerUoa *) storage;
+ AgAccountService *service;
+ guint restrictions = TP_STORAGE_RESTRICTION_FLAG_CANNOT_SET_SERVICE;
+ GValue value = G_VALUE_INIT;
+
+ /* If we don't know this account, we cannot do anything */
+ service = g_hash_table_lookup (self->priv->accounts, account_name);
+ if (service == NULL)
+ return G_MAXUINT;
+
+ g_value_init (&value, G_TYPE_BOOLEAN);
+ ag_account_service_get_value (service,
+ KEY_PREFIX KEY_READONLY_PARAMS, &value);
+
+ if (g_value_get_boolean (&value))
+ restrictions |= TP_STORAGE_RESTRICTION_FLAG_CANNOT_SET_PARAMETERS;
+
+ g_value_unset (&value);
+