We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74b180b commit cc7c3e3Copy full SHA for cc7c3e3
1 file changed
app/policies/public_page_policy.rb
@@ -29,8 +29,8 @@ def plan_export?
29
def plan_organisationally_exportable?
30
if @record.is_a?(Plan) && @user.is_a?(User)
31
return @record.publicly_visible? ||
32
- (@record.organisationally_visible? && @record.owner.present? &&
33
- @record.owner.org_id == @user.org_id)
+ (@record.organisationally_visible? && @record.owner.present? &&
+ @record.owner.org_id == @user.org_id)
34
end
35
36
false
0 commit comments