# policies/comment_policy.rb
class CommentPolicy < ApplicationPolicy
def index?
true
end
def show?
def create?
user.registered?
def update?
record.user == user
def destroy?