Commits

Anonymous committed 25f0a84

add restrict to views

Comments (0)

Files changed (1)

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 %}