Commit 3357e0a6 authored by dgt's avatar dgt

Fix: link for starring posts is only shown to logged in users

parent 3f0a987a
......@@ -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