Merge pull request #2372 from Neerti/8/28/2016_check_rights_runtime_fix

Fixes check_rights() runtime.
This commit is contained in:
Anewbe
2016-08-28 21:16:40 -05:00
committed by GitHub

View File

@@ -64,6 +64,8 @@ NOTE: It checks usr by default. Supply the "user" argument if you wish to check
C = M.client
if(!C)
return FALSE
if(!(istype(C, /client))) // If we still didn't find a client, something is wrong.
return FALSE
if(!C.holder)
if(show_msg)
C << "<span class='warning'>Error: You are not an admin.</span>"