mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 10:03:50 +01:00
Merge pull request #5200 from TheDZD/admin-check-fixes
Assorted Admin Rights Check Fixes
This commit is contained in:
@@ -873,8 +873,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
||||
set name = "Reset Telecomms Scripts"
|
||||
set desc = "Blanks all telecomms scripts from all telecomms servers"
|
||||
|
||||
if(!holder || !holder.rights || !holder.rights & R_ADMIN)
|
||||
to_chat(usr, "<span class='warning'>Admin only.</span>")
|
||||
if(!check_rights(R_ADMIN, 1, src))
|
||||
return
|
||||
|
||||
var/confirm = alert(src, "You sure you want to blank all NTSL scripts?", "Confirm", "Yes", "No")
|
||||
|
||||
Reference in New Issue
Block a user