Skip to content

Commit

Permalink
Merge pull request sparc-request#235 from bmic-development/kg-modify_…
Browse files Browse the repository at this point in the history
…request_submission_bug

KG - Submission Bug When Submitting Request as Catalog Overlord
  • Loading branch information
Stuart-Johnson committed Apr 26, 2017
2 parents 116833c + dd64a08 commit f6afcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/notifier_logic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def send_user_notifications(request_amendment: false)

xls = controller.render_to_string action: 'show', formats: [:xlsx]

if @service_request.protocol.project_roles.detect{|pr| pr.identity_id == @current_user.id}.project_rights != "approve"
if @service_request.protocol.project_roles.where(identity: @current_user).where.not(project_rights: "approve").any?
approval = @service_request.approvals.create
else
approval = false
Expand Down

0 comments on commit f6afcce

Please sign in to comment.