Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
briri committed Feb 15, 2022
1 parent 74b180b commit cc7c3e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/policies/public_page_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def plan_export?
def plan_organisationally_exportable?
if @record.is_a?(Plan) && @user.is_a?(User)
return @record.publicly_visible? ||
(@record.organisationally_visible? && @record.owner.present? &&
@record.owner.org_id == @user.org_id)
(@record.organisationally_visible? && @record.owner.present? &&
@record.owner.org_id == @user.org_id)
end

false
Expand Down

0 comments on commit cc7c3e3

Please sign in to comment.