Commit 786ffdff authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Pithos issue_commission using user uuid instead of id

parent 03d5b85d
......@@ -975,7 +975,7 @@ def api_method(http_method=None, format_allowed=False, user_required=True):
raise Unauthorized('Access denied')
assert getattr(request, 'user_uniq', None) != None
request.user_uniq = User(request.user_uniq)
request.user_uniq.id = request.user.get('id')
request.user_uniq.uuid = request.user.get('uuid')
# The args variable may contain up to (account, container, object).
if len(args) > 1 and len(args[1]) > 256:
......
......@@ -1269,7 +1269,7 @@ class ModularBackend(BaseBackend):
serial = self.quotaholder.issue_commission(
context = {},
target = account,
target = user.uuid,
key = '1',
clientkey = 'pithos',
ownerkey = '',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment