Skip to content

Commit

Permalink
update report create policy #154
Browse files Browse the repository at this point in the history
  • Loading branch information
tmfrnz committed Sep 14, 2017
1 parent a3b42f1 commit 80a77cb
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?
true # super || (@user.role?('contributor') && @record.manager == @user)
@user # super || (@user.role?('contributor') && @record.manager == @user)
end

def update?
Expand Down

0 comments on commit 80a77cb

Please # to comment.