We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 937ec79 + e4a9157 commit af1ede2Copy full SHA for af1ede2
auth_api_key/models/ir_http.py
@@ -5,8 +5,9 @@
5
6
import logging
7
8
+from werkzeug.exceptions import Unauthorized
9
+
10
from odoo import models
-from odoo.exceptions import AccessDenied
11
from odoo.http import request
12
13
_logger = logging.getLogger(__name__)
@@ -33,4 +34,4 @@ def _auth_method_api_key(cls):
33
34
request.auth_api_key_id = auth_api_key.id
35
return True
36
_logger.error("Wrong HTTP_API_KEY, access denied")
- raise AccessDenied()
37
+ raise Unauthorized()
0 commit comments