{= # Note, if the user tries to access templates.admin.index but has # no administrative rights, then log the user out! # debug_message("#### #### templates.admin.index START \n"); bool administrator = node_value(subnode_by_name(volatile.authenticated_user_node_path, "administrator")); # debug_message("#### #### administrator: " . administrator . "\n"); if (administrator) then ( bool show_talkback_confirmation = false; if (node_exists("lang_admin.talkback.agree_label") and !node_exists("preferences.miscellaneous.talkback")) then ( show_talkback_confirmation = true; ); if (!show_talkback_confirmation) then ( templates.admin.index_frameset; clear_session_changes(); ) else ( # show talkback confirmation templates.admin.index_talkback; ); ) # if administrator else ( templates.admin.index_logout; ); =}