Jelajahi Sumber

bug fijado en el manejador de peticiones

robert2206 8 tahun lalu
induk
melakukan
e4f8a9f82c
7 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. TEMPAT SAMPAH
      __init__.pyc
  2. TEMPAT SAMPAH
      controllers/__init__.pyc
  3. 0 2
      controllers/http_handler.py
  4. TEMPAT SAMPAH
      controllers/http_handler.pyc
  5. 2 1
      controllers/resources.json
  6. TEMPAT SAMPAH
      models/__init__.pyc
  7. TEMPAT SAMPAH
      models/models.pyc

TEMPAT SAMPAH
__init__.pyc


TEMPAT SAMPAH
controllers/__init__.pyc


+ 0 - 2
controllers/http_handler.py

@@ -126,8 +126,6 @@ class ApiManager(http.Controller):
                 auth = 'none',
                 cors = '*')
     def restify(self, **args):
-        print args
-        print "----------------------------------------------------------------"
         if not self.valid_token():
             return self.make_response({'error': 'unauthorized resource'}, 401) # access denied
 

TEMPAT SAMPAH
controllers/http_handler.pyc


+ 2 - 1
controllers/resources.json

@@ -34,7 +34,8 @@
   "users": {
     "model": "res.users",
     "filters": [
-      ["active", "=", true]
+      ["active", "=", true],
+			["jwt_token", "!=", false]
     ],
     "module": "sale"
   },

TEMPAT SAMPAH
models/__init__.pyc


TEMPAT SAMPAH
models/models.pyc