Commits

Anonymous committed 58558fb

add restrict to views

  • Participants
  • Parent commits 0cf584d

Comments (0)

Files changed (1)

File newsmeme/templates/user/comments.html

 {% if page_obj.total %}
 <ul class="comments">
 {% for comment in page_obj.items %}
+{% if comment.post.can_access(g.user) %}
 <li>
 
 <div>
 {% endif %}
 
 </li>
+{% endif %}
 {% endfor %}
 </ul>
 {% else %}