mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
restricts deletion of only your logs to centcom, deletion of all requires ID computer access
This commit is contained in:
@@ -447,7 +447,7 @@ var/time_last_changed_position = 0
|
||||
mode = text2num(href_list["mode_target"])
|
||||
|
||||
if("wipe_my_logs")
|
||||
if(is_authenticated(usr))
|
||||
if(is_authenticated(usr) && is_centcom())
|
||||
var/delcount = SSjobs.delete_log_records(scan.registered_name, FALSE)
|
||||
if(delcount)
|
||||
playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
mode = text2num(href_list["mode_target"])
|
||||
|
||||
if("PRG_wipe_my_logs")
|
||||
if(is_authenticated(usr))
|
||||
if(is_authenticated(usr) && is_centcom)
|
||||
var/delcount = SSjobs.delete_log_records(scan.registered_name, FALSE)
|
||||
if(delcount)
|
||||
playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
|
||||
|
||||
@@ -68,7 +68,9 @@
|
||||
<div class='item'>
|
||||
{{if data.authenticated}}
|
||||
{{:data.id_change_html}}
|
||||
{{:helper.link('Delete Records By: ' + data.scan_owner, null, {'action' : 'PRG_wipe_my_logs'}, null, 'linkDanger')}}
|
||||
{{if data.centcom_access}}
|
||||
{{:helper.link('Delete Records By: ' + data.scan_owner, null, {'action' : 'PRG_wipe_my_logs'}, null, 'linkDanger')}}
|
||||
{{/if}}
|
||||
{{if !data.target_dept}}
|
||||
{{:helper.link('Delete ALL Records', null, {'action' : 'PRG_wipe_all_logs'}, null, 'linkDanger')}}
|
||||
{{/if}}
|
||||
|
||||
@@ -68,7 +68,9 @@
|
||||
<div class='item'>
|
||||
{{if data.authenticated}}
|
||||
{{:data.id_change_html}}
|
||||
{{:helper.link('Delete Records By: ' + data.scan_owner, null, {'choice' : 'wipe_my_logs'}, null, 'linkDanger')}}
|
||||
{{if data.centcom_access}}
|
||||
{{:helper.link('Delete Records By: ' + data.scan_owner, null, {'choice' : 'wipe_my_logs'}, null, 'linkDanger')}}
|
||||
{{/if}}
|
||||
{{if !data.target_dept}}
|
||||
{{:helper.link('Delete ALL Records', null, {'choice' : 'wipe_all_logs'}, null, 'linkDanger')}}
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user