1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Fix command authority check.

This commit is contained in:
Sandu Liviu Catalin 2021-05-05 18:28:19 +03:00
parent cb0598d228
commit 6b8da10deb

View File

@ -1872,7 +1872,10 @@ public:
bool AuthCheck(const Object & invoker) bool AuthCheck(const Object & invoker)
{ {
// Do we need explicit authority verification? // Do we need explicit authority verification?
if (!m_Protected) { /* Anyone can invoke this command */ } if (!m_Protected)
{
return true; // Anyone can invoke this command
}
// Was there a custom authority inspector specified? // Was there a custom authority inspector specified?
else if (!m_OnAuth.IsNull()) else if (!m_OnAuth.IsNull())
{ {