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:
Krausus
2015-06-08 07:55:29 -04:00
parent 075f89fcb0
commit a7eea3487f
6 changed files with 8 additions and 7 deletions
+1
View File
@@ -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>"