diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2015-01-16 11:21:42 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2015-01-16 11:21:42 +0100 |
commit | a94a1dafdd0d95e618afb7b7f144970ccd561ad7 (patch) | |
tree | 6849435149802c6589cea5b3505ba1d6dbc9437e /app | |
parent | 91295cfccf285998dc4de72be166b8e61311f37e (diff) |
Tokens that can POST can also perform PUT.
Change-Id: I3d6e2e94c72ab1c51a4b897411a099b7d36940cd
Diffstat (limited to 'app')
-rw-r--r-- | app/models/token.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/token.py b/app/models/token.py index 017c4cc..9de07ba 100644 --- a/app/models/token.py +++ b/app/models/token.py @@ -51,7 +51,7 @@ class Token(modb.BaseDocument): - 0: if the token is an admin token - 1: if the token is a superuser token - 2: if the token can perform GET - - 3: if the token can perfrom POST + - 3: if the token can perfrom POST and PUT - 4: if the token can perform DELETE - 5: if the token is IP restricted - 6: if the token can create new tokens @@ -222,7 +222,7 @@ class Token(modb.BaseDocument): """ value = check_attribute_value(value) - # Force admin to zero, and also if can create new tokens, regardless + # Force admin to zero, and also if it can create new tokens, regardless # of what is passed. A super user cannot create new tokens. self._properties[0] = 0 self._properties[6] = 0 |