mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 06:57:42 +01:00
A little bit more GDPR compliance stuff (#17367)
This commit is contained in:
@@ -22,20 +22,24 @@
|
||||
/mob/new_player/verb/new_player_panel()
|
||||
set src = usr
|
||||
|
||||
if(client.tos_consent)
|
||||
if(client.tos_consent || GLOB.configuration.system.external_tos_handler)
|
||||
new_player_panel_proc()
|
||||
else
|
||||
privacy_consent()
|
||||
|
||||
|
||||
/mob/new_player/proc/privacy_consent()
|
||||
src << browse(null, "window=playersetup")
|
||||
var/output = GLOB.join_tos
|
||||
output += "<p><a href='byond://?src=[UID()];consent_signed=SIGNED'>I consent</A>"
|
||||
output += "<p><a href='byond://?src=[UID()];consent_rejected=NOTSIGNED'>I DO NOT consent</A>"
|
||||
// Dont blank out the other window. This one is read only.
|
||||
if(!GLOB.configuration.system.external_tos_handler)
|
||||
src << browse(null, "window=playersetup")
|
||||
output += "<p><a href='byond://?src=[UID()];consent_signed=SIGNED'>I consent</A>"
|
||||
output += "<p><a href='byond://?src=[UID()];consent_rejected=NOTSIGNED'>I DO NOT consent</A>"
|
||||
src << browse(output,"window=privacy_consent;size=500x300")
|
||||
var/datum/browser/popup = new(src, "privacy_consent", "<div align='center'>Privacy Consent</div>", 500, 400)
|
||||
popup.set_window_options("can_close=0")
|
||||
// Let them close it here, this is a read only pane
|
||||
if(!GLOB.configuration.system.external_tos_handler)
|
||||
popup.set_window_options("can_close=0")
|
||||
popup.set_content(output)
|
||||
popup.open(0)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user