custom-chatcolors: Fix group tags not working if client doesn't have access to set a custom tag.

This commit is contained in:
BotoX 2016-08-13 18:13:33 +02:00
parent 7baa42c3f3
commit a88bff57b5

View File

@ -2430,14 +2430,11 @@ public void OnClientPostAdminCheck(int client)
if (!ConfigForward(client))
return;
if (!CheckCommandAccess(client, "sm_tag", ADMFLAG_CUSTOM1))
return;
char auth[32];
GetClientAuthId(client, AuthId_Steam2, auth, sizeof(auth));
KvRewind(g_hConfigFile);
if (!KvJumpToKey(g_hConfigFile, auth))
if (!CheckCommandAccess(client, "sm_tag", ADMFLAG_CUSTOM1) || !KvJumpToKey(g_hConfigFile, auth))
{
KvRewind(g_hConfigFile);
KvGotoFirstSubKey(g_hConfigFile);