Преглед на файлове

bug fijado en el manejador de peticiones

robert2206 преди 8 години
родител
ревизия
e4f8a9f82c
променени са 7 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. BIN
      __init__.pyc
  2. BIN
      controllers/__init__.pyc
  3. 0 2
      controllers/http_handler.py
  4. BIN
      controllers/http_handler.pyc
  5. 2 1
      controllers/resources.json
  6. BIN
      models/__init__.pyc
  7. BIN
      models/models.pyc

BIN
__init__.pyc


BIN
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
 

BIN
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"
   },

BIN
models/__init__.pyc


BIN
models/models.pyc