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:
parent
cb0598d228
commit
6b8da10deb
@ -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())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user