From 0639330479dcdc519f24e2ebcc270e56a4179284 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Fri, 13 Sep 2024 13:24:08 -0500 Subject: [PATCH] Require logging in before use of the sql edit popup --- src/pgwui_sql/templates/sql_edit.mak | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/pgwui_sql/templates/sql_edit.mak b/src/pgwui_sql/templates/sql_edit.mak index 4e7d6c6..c2f229d 100644 --- a/src/pgwui_sql/templates/sql_edit.mak +++ b/src/pgwui_sql/templates/sql_edit.mak @@ -69,6 +69,10 @@ <% tab_index.inc() %> -<% tab_index = self.attr.TabIndex() %> -${self.main_form(tab_index, target=self.sql_results_target(), - action=request.route_path('pgwui_sql'))} +% if havecreds: + <% tab_index = self.attr.TabIndex() %> + ${self.main_form(tab_index, target=self.sql_results_target(), + action=request.route_path('pgwui_sql'))} +% else: +

Not logged in. Close this window and re-open it after logging in.

+% endif -- 2.34.1