Merge pull request #14641 from Heroman3003/admin-perm-fixes-also-sound

Fixes some admin perms not being properly checked
This commit is contained in:
Casey
2023-03-09 15:33:21 -05:00
committed by CHOMPStation2
parent ba25f3c417
commit 96a7facbb6
4 changed files with 10 additions and 7 deletions
+2
View File
@@ -279,6 +279,8 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
//send this msg to all admins
for(var/client/X in GLOB.admins)
if(!check_rights(R_ADMIN, 0, X))
continue
if(X.is_preference_enabled(/datum/client_preference/holder/play_adminhelp_ping))
X << 'sound/effects/adminhelp.ogg'
window_flash(X)