Skip to content

Commit

Permalink
Fix further conflicts from #761
Browse files Browse the repository at this point in the history
  • Loading branch information
reiddraper committed Jan 21, 2014
1 parent 06c6b73 commit 3be0660
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/riak_cs_wm_object.erl
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ accept_body(RD, Ctx=#context{local_context=LocalCtx,
riakc_pid=RiakcPid}) ->
#key_context{bucket=Bucket,
key=Key,
bucket_object=BucketObj,
putctype=ContentType,
size=Size,
get_fsm_pid=GetFsmPid} = LocalCtx,
Expand Down
3 changes: 1 addition & 2 deletions src/riak_cs_wm_object_acl.erl
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ produce_body(RD, Ctx=#context{local_context=LocalCtx,
accept_body(RD, Ctx=#context{local_context=#key_context{get_fsm_pid=GetFsmPid,
manifest=Mfst,
key=KeyStr,
bucket=Bucket,
bucket_object=BucketObj},
bucket=Bucket},
user=User,
acl=AclFromHeadersOrDefault,
requested_perm='WRITE_ACP',
Expand Down
5 changes: 3 additions & 2 deletions src/riak_cs_wm_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,13 @@ maybe_update_context_with_acl_from_headers(RD, Ctx=#context{user=User}) ->
-spec maybe_acl_from_context_and_request(#wm_reqdata{}, #context{}) ->
{ok, acl_or_error()} | error.
maybe_acl_from_context_and_request(RD, #context{user=User,
bucket=Bucket,
local_context=KeyContext,
riakc_pid=RiakcPid}) ->
BucketObj = KeyContext#key_context.bucket_object,
case has_acl_header(RD) of
true ->
Headers = normalize_headers(RD),
BucketOwner = bucket_owner(Bucket, RiakcPid),
BucketOwner = bucket_owner(BucketObj),
Owner = {User?RCS_USER.display_name,
User?RCS_USER.canonical_id,
User?RCS_USER.key_id},
Expand Down

0 comments on commit 3be0660

Please sign in to comment.