From 27ec2d7f1cad70989228df0f73261e7dec56887b Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Thu, 20 Jun 2024 19:43:32 -0700 Subject: [PATCH] Update initgui.js --- src/initgui.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/initgui.js b/src/initgui.js index c24ffb68f..c48cae4ba 100644 --- a/src/initgui.js +++ b/src/initgui.js @@ -229,9 +229,13 @@ window.initgui = async function(options){ }).then(response => response.json()) .then(async data => { if(data.email && data.email !== window.user.email){ - UIAlert({ - message: 'You are not authorized to view this link.' - }); + await UIWindowLogin({ + reload_on_success: true, + send_confirmation_code: false, + window_options:{ + has_head: false + } + }); }else{ UIAlert({ type: 'success',