Update initgui.js

This commit is contained in:
Nariman Jelveh
2024-06-20 19:43:32 -07:00
parent 88ce871601
commit 27ec2d7f1c
+7 -3
View File
@@ -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',