Skip to content

Commit

Permalink
allow any user to create progress report #154
Browse files Browse the repository at this point in the history
  • Loading branch information
tmfrnz committed Sep 14, 2017
1 parent 429e3af commit a3b42f1
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 a3b42f1

Please sign in to comment.