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>"
+2 -3
View File
@@ -65,8 +65,8 @@ var/list/admin_verbs_admin = list(
/client/proc/aooc,
/client/proc/freeze,
/client/proc/freezemecha,
/client/proc/alt_check
/client/proc/alt_check,
/client/proc/secrets
)
var/list/admin_verbs_ban = list(
/client/proc/unban_panel,
@@ -99,7 +99,6 @@ var/list/admin_verbs_event = list(
/client/proc/response_team, // Response Teams admin verb
/client/proc/cmd_admin_create_centcom_report,
/client/proc/fax_panel,
/client/proc/secrets,
/client/proc/event_manager_panel
)
@@ -12,8 +12,8 @@
<html>
<head>
<title>Permissions Panel</title>
<script type='text/javascript' src='html/search.js'></script>
<link rel='stylesheet' type='text/css' href='html/panels.css'>
<script type='text/javascript' src="search.js"></script>
<link rel='stylesheet' type='text/css' href="panels.css">
</head>
<body onload='selectTextField();updateSearch();'>
<div id='main'><table id='searchable' cellspacing='0'>
+1
View File
@@ -395,6 +395,7 @@
/datum/admins/proc/check_antagonists()
if(!check_rights(R_ADMIN)) return
if (ticker && ticker.current_state >= GAME_STATE_PLAYING)
var/dat = "<html><head><title>Round Status</title></head><body><h1><B>Round Status</B></h1>"
dat += "Current Game Mode: <B>[ticker.mode.name]</B><BR>"