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 -1
View File
@@ -426,7 +426,7 @@ client
/client/proc/view_var_Topic(href, href_list, hsrc)
//This should all be moved over to datum/admins/Topic() or something ~Carn
if( (usr.client != src) || !src.holder )
if(!check_rights(R_ADMIN|R_MOD))
return
if(href_list["Vars"])
debug_variables(locate(href_list["Vars"]))