| 1735 | } |
| 1736 | |
| 1737 | bool 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 | |
| 1760 | void iterator_glob_basic_override(FILE *fp, const char *key, FlagBits flags) |
| 1761 | { |
nothing calls this directly
no test coverage detected