restricts deletion of only your logs to centcom, deletion of all requires ID computer access

This commit is contained in:
Kyep
2019-04-29 20:47:45 -07:00
parent 97e53916f6
commit 07b269264a
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -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)
+3 -1
View File
@@ -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}}
+3 -1
View File
@@ -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}}