Skip to content

Commit

Permalink
Change subject.agent to subject.user
Browse files Browse the repository at this point in the history
  • Loading branch information
straleyb committed Nov 9, 2016
1 parent cc2696c commit d71ba31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/forms/curation_concerns/forms/workflow_action_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def save

def authorized_for_processing
return true if CurationConcerns::Workflow::PermissionQuery.authorized_for_processing?(
user: subject.agent,
user: subject.user,
entity: subject.entity,
action: sipity_workflow_action
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def update_sipity_workflow_state

def create_sipity_comment
return true unless comment_text.present?
Sipity::Comment.create!(entity: subject.entity, agent: subject.agent, comment: comment_text)
Sipity::Comment.create!(entity: subject.entity, agent: subject.user, comment: comment_text)
end

def handle_sipity_notifications(comment:)
Expand Down

0 comments on commit d71ba31

Please sign in to comment.