{% load base_tags %} {% load perm_tags %} {% has_perm user site_settings.change_setting as can_edit_setting %} {% has_perm user forums.add_forum as can_add_forum %} {% if app_object %} {% has_perm user forums.view_forum app_object as can_view_forum %} {% has_perm user forums.change_forum app_object as can_edit_forum %} {% has_perm user forums.delete_forum app_object as can_delete_forum %} {% else %} {% has_perm user forums.view_forum as can_view_forum %} {% has_perm user forums.change_forum as can_edit_forum %} {% endif %}