Skip to content

Commit

Permalink
Merge pull request #8 from impactoss/guest-report-154
Browse files Browse the repository at this point in the history
allow any user to create progress report impactoss#154
  • Loading branch information
tmfrnz authored Sep 14, 2017
2 parents 3b650e7 + bb687a6 commit f87500f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/policies/progress_report_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def permitted_attributes
end

def create?
super || (@user.role?('contributor') && @record.manager == @user)
true # super || (@user.role?('contributor') && @record.manager == @user)
end

def update?
Expand Down

0 comments on commit f87500f

Please sign in to comment.