fix: message if logged but not perm.create_comment
This commit is contained in:
parent
f9f98d9796
commit
bd584151bc
1 changed files with 2 additions and 0 deletions
|
@ -94,6 +94,8 @@
|
|||
<button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-pencil"></span> Add a comment</button>
|
||||
</div>
|
||||
</form>
|
||||
{% elif request.user.is_authenticated %}
|
||||
Sorry, you are not allowed to comment this issue.
|
||||
{% else %}
|
||||
To post a comment, please <a href="{% url 'login' %}?prev={{ request.path }}&next={{ request.path }}">login</a>.
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue