mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-02-04 05:08:26 +00:00
Merge pull request #2372 from Neerti/8/28/2016_check_rights_runtime_fix
Fixes check_rights() runtime.
This commit is contained in:
@@ -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>"
|
||||
|
||||
Reference in New Issue
Block a user