{% load base_tags %} {% load perm_tags %} {% has_perm user site_settings.change_setting as can_edit_setting %} {% has_perm user staff.add_staff as can_add_staff %} {% if app_object %} {% has_perm user staff.view_staff app_object as can_view_staff %} {% has_perm user staff.change_staff app_object as can_edit_staff %} {% has_perm user staff.delete_staff app_object as can_delete_staff %} {% else %} {% has_perm user staff.view_staff as can_view_staff %} {% has_perm user staff.change_staff as can_edit_staff %} {% endif %}