From 88ce8716014832e8d45cffc6ce8d32d05b344cd1 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Thu, 20 Jun 2024 19:38:47 -0700 Subject: [PATCH] Update initgui.js --- src/initgui.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/initgui.js b/src/initgui.js index c9d1a41d..c24ffb68 100644 --- a/src/initgui.js +++ b/src/initgui.js @@ -228,17 +228,15 @@ window.initgui = async function(options){ "method": "POST", }).then(response => response.json()) .then(async data => { - if(data.success){ - if(data.email && data.email !== window.user.email){ - UIAlert({ - message: 'You are not authorized to view this link.' - }); - }else{ - UIAlert({ - type: 'success', - message: 'You are authorized to view this link.' - }); - } + if(data.email && data.email !== window.user.email){ + UIAlert({ + message: 'You are not authorized to view this link.' + }); + }else{ + UIAlert({ + type: 'success', + message: 'You are authorized to view this link.' + }); } }).catch(error => { console.error('Error:', error);