Commit 82b0078d authored by Daniel STAN's avatar Daniel STAN

affiche "ajout" uniquement si vraiment le droit

parent c980027b
......@@ -33,9 +33,11 @@ Mes digicodes
</tbody>
</table>
{% if CAN_GENERATE %}
<br/>
{% if user.is_staff %}
{% if perms.digicode.add_code %}
<a href="{% url "admin:digicode_code_add" %}" class="button-add">Ajouter un nouveau code</a>
{% endif %}
<a href="{% url "admin:digicode_code_changelist" %}" class="button">Interface d'admin</a>
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment