diff --git a/templates/command-page.html b/templates/command-page.html index f9d48cb8..2fbcb6cc 100644 --- a/templates/command-page.html +++ b/templates/command-page.html @@ -102,53 +102,11 @@

{{ command_title }} {% if deprecated %} {{ depreca
{{ command_data_obj.since }}
{% endif %} - {% if command_data_obj.acl_categories or command_data_obj.command_flags %} + {% if command_data_obj.acl_categories %}
ACL Categories:
- {% set all_categories = [] %} - - {% if command_data_obj.acl_categories %} - {% set all_categories = command_data_obj.acl_categories %} - {% endif %} - - {% if command_data_obj.command_flags %} - {# Command flag WRITE implies ACL category WRITE #} - {% if "WRITE" in command_data_obj.command_flags %} - {% set all_categories = all_categories | concat(with="WRITE") %} - {% endif %} - - {# Command flag READONLY and not ACL category SCRIPTING implies ACL category READ #} - {% if "READONLY" in command_data_obj.command_flags and (not command_data_obj.acl_categories or not "SCRIPTING" in command_data_obj.acl_categories) %} - {% set all_categories = all_categories | concat(with="READ") %} - {% endif %} - - {# Command flag ADMIN implies ACL categories ADMIN and DANGEROUS #} - {% if "ADMIN" in command_data_obj.command_flags %} - {% set all_categories = all_categories | concat(with="ADMIN") | concat(with="DANGEROUS") %} - {% endif %} - - {% if "FAST" in command_data_obj.command_flags %} - {% set all_categories = all_categories | concat(with="FAST") %} - {% endif %} - - {# Command flag PUBSUB implies ACL category PUBSUB #} - {% if "PUBSUB" in command_data_obj.command_flags %} - {% set all_categories = all_categories | concat(with="PUBSUB") %} - {% endif %} - - {# Command flag BLOCKING implies ACL category BLOCKING #} - {% if "BLOCKING" in command_data_obj.command_flags %} - {% set all_categories = all_categories | concat(with="BLOCKING") %} - {% endif %} - {% endif %} - - {# Not ACL category FAST implies ACL category SLOW. "If it's not fast, it's slow." #} - {% if "FAST" not in all_categories %} - {% set all_categories = all_categories | concat(with="SLOW") %} - {% endif %} - - {% for category in all_categories %} + {% for category in command_data_obj.acl_categories %} @{{ category|lower }}{% if not loop.last %}, {% endif %} {% endfor %}