Commit 47901677 authored by azul's avatar azul

Merge branch 'fix/message-view' into 'master'

fix: check for page before testing page_policy

See merge request !291
parents 3cf5325e 2f8505a5
......@@ -23,7 +23,7 @@ class PostPolicy < ApplicationPolicy
def admin?
page && page_policy.admin?
def comment_by_visitor_on_public_page?
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment