acl_debug.html 986 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% load i18n %}
  2. <h4>
  3. {% if misago_user.is_authenticated %}
  4. {% blocktrans with user=misago_user.username %}
  5. {{ user }} roles
  6. {% endblocktrans %}
  7. {% else %}
  8. {% trans "Anonymous roles" %}
  9. {% endif %}
  10. </h4>
  11. <table>
  12. <thead>
  13. <tr>
  14. <th style="width: 180px;">{% trans "Role" %}</th>
  15. <th>{% trans "Permissions" %}</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. {% for role in misago_user.get_roles %}
  20. <tr>
  21. <td>{{ role.name }}</td>
  22. <td>{{ role.permissions }}</td>
  23. </tr>
  24. {% endfor %}
  25. </tbody>
  26. </table>
  27. <h4>{% trans "Current ACL" %}</h4>
  28. <table>
  29. <thead>
  30. <tr>
  31. <th style="width: 180px;">{% trans "Key" %}</th>
  32. <th>{% trans "Value" %}</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. {% for key, value in misago_acl.items %}
  37. <tr>
  38. <td>{{ key }}</td>
  39. <td>{{ value }}</td>
  40. </tr>
  41. {% endfor %}
  42. </tbody>
  43. </table>