summaryrefslogtreecommitdiff
path: root/addons/auth_oauth/controllers/main.py
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2012-08-18 18:49:32 +0200
committerAntony Lesuisse <al@openerp.com>2012-08-18 18:49:32 +0200
commit297cff0449ddb7b7bdcbbe2bd7c8b80c5cb00a35 (patch)
treebc87a329ecff353cf2aad001e984a9e20a924911 /addons/auth_oauth/controllers/main.py
parent6cce0bd9fc7d54602c551213429e151b53963397 (diff)
parent4f76c4e8d9fecca6ffc091f13c40ac3eadcc742d (diff)
[MERGE] auth_config
bzr revid: al@openerp.com-20120818164932-tt7mpm1p5k3i5unu
Diffstat (limited to 'addons/auth_oauth/controllers/main.py')
-rw-r--r--addons/auth_oauth/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py
index 28f550b4bda..2959fa45db1 100644
--- a/addons/auth_oauth/controllers/main.py
+++ b/addons/auth_oauth/controllers/main.py
@@ -18,7 +18,7 @@ class OAuthController(openerpweb.Controller):
registry = openerp.modules.registry.RegistryManager.get(dbname)
with registry.cursor() as cr:
providers = registry.get('auth.oauth.provider')
- l = providers.read(cr, 1, providers.search(cr, 1, []))
+ l = providers.read(cr, 1, providers.search(cr, 1, [('enabled','=',True)]))
return l
@openerpweb.httprequest