Commit 52b5b107 authored by dgt's avatar dgt

Merge branch '239-starring-post-when-not-logged-in-triggers-500' into 'master'

Resolve "starring post when not logged in triggers 500"

Closes #239

See merge request !238
parents 3f0a987a 3357e0a6
......@@ -14,6 +14,7 @@ class PostPolicy < ApplicationPolicy
def twinkle?
post.discussion.page and
page_policy.show? and
user.id and
user.id != post.user_id
end
......
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