Introduced role-based capability system.

It's still rather limited and hard-coded, but it works.
This commit is contained in:
2017-08-18 14:47:42 +02:00
parent 566a23d3b6
commit 575a7ed1a7
14 changed files with 137 additions and 27 deletions

View File

@@ -44,7 +44,7 @@
| {# * User is authenticated, but has no subscription or 'POST' permission #}
.comment-reply-form
.comment-reply-field.sign-in
| {% if current_user.has_role('subscriber') or current_user.has_role('demo') %}
| {% if current_user.has_cap('subscriber') %}
i.pi-lock
| Only project members can comment.
| {% else %}