{% load base_tags %} {% load perm_tags %} {% has_perm user site_settings.change_setting as can_edit_setting %} {% has_perm user photos.add_photoset as can_add_photoset %} {% if nav_object %} {% has_perm user photos.view_photoset nav_object as can_view_photoset %} {% has_perm user photos.change_photoset nav_object as can_edit_photoset %} {% has_perm user photos.delete_photoset nav_object as can_delete_photoset %} {% else %} {% has_perm user photos.view_photoset as can_view_photoset %} {% has_perm user photos.change_photoset as can_edit_photoset %} {% endif %} {% if not SITE_GLOBAL_HIDEALLTABS %}