权限管理

{% for topic in topics %} {% endfor %} {% for user in users %} {% for topic in topics %} {% endfor %} {% endfor %}
用户 \ Topic{{ topic.name }}
{{ user.username }} {% set p = perm_map.get((user.id, topic.id), {}) %}

P = 推送权限,S = 订阅权限