comparison configuration.js @ 14:06abc804e2ab

Correct syntax error.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 09 Sep 2010 14:09:45 +0200
parents 447db2e8c622
children f2e9365bc8ec
comparison
equal deleted inserted replaced
13:447db2e8c622 14:06abc804e2ab
230 if (config.access == 'whitelist') { 230 if (config.access == 'whitelist') {
231 config.disable(/access-.+/); 231 config.disable(/access-.+/);
232 config.enable('access-whitelist'); 232 config.enable('access-whitelist');
233 config.service_configuration.node_config['pubsub#access_model'].value = 'whitelist'; 233 config.service_configuration.node_config['pubsub#access_model'].value = 'whitelist';
234 config.service_configuration['publish-options']['pubsub#access_model'].value = 'whitelist'; 234 config.service_configuration['publish-options']['pubsub#access_model'].value = 'whitelist';
235 } else if (config.access == 'authorize')) { 235 } else if (config.access == 'authorize') {
236 config.disable(/access-.+/); 236 config.disable(/access-.+/);
237 config.enable('access-authorize'); 237 config.enable('access-authorize');
238 config.service_configuration.node_config['pubsub#access_model'].value = 'authorize'; 238 config.service_configuration.node_config['pubsub#access_model'].value = 'authorize';
239 config.service_configuration['publish-options']['pubsub#access_model'].value = 'authorize'; 239 config.service_configuration['publish-options']['pubsub#access_model'].value = 'authorize';
240 } else if (config.access == 'open')) { 240 } else if (config.access == 'open') {
241 config.disable(/access-.+/); 241 config.disable(/access-.+/);
242 config.enable('access-open'); 242 config.enable('access-open');
243 config.service_configuration.node_config['pubsub#access_model'].value = 'open'; 243 config.service_configuration.node_config['pubsub#access_model'].value = 'open';
244 config.service_configuration['publish-options']['pubsub#access_model'].value = 'open'; 244 config.service_configuration['publish-options']['pubsub#access_model'].value = 'open';
245 } 245 }