anchor.diff:  ) ->
       fslogic_worker:provider_response().
   set_transfer_encoding(UserCtx, FileCtx0, Encoding, Create, Replace) ->
  -    FileCtx1 = fslogic_authz:ensure_authorized(
  -        UserCtx, FileCtx0,
  +    FileCtx1 = file_ctx:assert_file_exists(FileCtx0),
  +    FileCtx2 = fslogic_authz:ensure_authorized(
  +        UserCtx, FileCtx1,
           [traverse_ancestors, ?write_attributes]
       ),
  -    set_transfer_encoding_insecure(UserCtx, FileCtx1, Encoding, Create, Replace).
  +    set_transfer_encoding_insecure(UserCtx, FileCtx2, Encoding, Create, Replace).
   
   
   %%--------------------------------------------------------------------
  
positive.code: ) ->
      fslogic_worker:provider_response().
  set_cdmi_completion_status(UserCtx, FileCtx0, CompletionStatus, Create, Replace) ->
      FileCtx1 = fslogic_authz:ensure_authorized(
          UserCtx, FileCtx0,
          [traverse_ancestors, ?write_attributes]
      ),
      set_cdmi_completion_status_insecure(
          UserCtx, FileCtx1,
          CompletionStatus, Create, Replace
      ).
  
  
negative.code: -spec get_cdmi_completion_status(user_ctx:ctx(), file_ctx:ctx()) ->
      fslogic_worker:provider_response().
  get_cdmi_completion_status(UserCtx, FileCtx0) ->
      FileCtx1 = file_ctx:assert_file_exists(FileCtx0),
      FileCtx2 = fslogic_authz:ensure_authorized(
          UserCtx, FileCtx1,
          [traverse_ancestors, ?read_attributes]
      ),
      get_cdmi_completion_status_insecure(UserCtx, FileCtx2).
  
  
  %%--------------------------------------------------------------------
  