MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / CheckAccess

Method CheckAccess

core/logic/AdminCache.cpp:1737–1758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1735}
1736
1737bool AdminCache::CheckAccess(int client, const char *cmd, FlagBits flags, bool override_only)
1738{
1739 if (client == 0)
1740 {
1741 return true;
1742 }
1743
1744 /* Auto-detect a command if we can */
1745 FlagBits bits = flags;
1746 bool found_command = false;
1747 if (!override_only)
1748 {
1749 found_command = bridge->LookForCommandAdminFlags(cmd, &bits);
1750 }
1751
1752 if (!found_command)
1753 {
1754 GetCommandOverride(cmd, Override_Command, &bits);
1755 }
1756
1757 return CheckClientCommandAccess(client, cmd, bits) ? 1 : 0;
1758}
1759
1760void iterator_glob_basic_override(FILE *fp, const char *key, FlagBits flags)
1761{

Callers

nothing calls this directly

Calls 2

GetCommandOverrideFunction · 0.85

Tested by

no test coverage detected