diff options
| author | Antony Lesuisse <al@openerp.com> | 2012-08-18 18:49:32 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2012-08-18 18:49:32 +0200 |
| commit | 297cff0449ddb7b7bdcbbe2bd7c8b80c5cb00a35 (patch) | |
| tree | bc87a329ecff353cf2aad001e984a9e20a924911 /addons/auth_oauth/controllers/main.py | |
| parent | 6cce0bd9fc7d54602c551213429e151b53963397 (diff) | |
| parent | 4f76c4e8d9fecca6ffc091f13c40ac3eadcc742d (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.py | 2 |
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 |
