mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
Fixes missing/broken admin permission checks
Also fixes a small issue with the permissions panel, because the error message was really annoying me.
This commit is contained in:
@@ -38,6 +38,7 @@ var/global/nologevent = 0
|
||||
if (!istype(src,/datum/admins))
|
||||
usr << "Error: you are not an admin!"
|
||||
return
|
||||
if(!check_rights(R_ADMIN|R_MOD)) return
|
||||
|
||||
var/body = "<html><head><title>Options for [M.key]</title></head>"
|
||||
body += "<body>Options panel for <b>[M]</b>"
|
||||
|
||||
Reference in New Issue
Block a user