The sheriff's department wasn't allowed to refuse the permit for this reason, as evidenced by the fact that the officials involved are also being criminally charged for the bribery scheme.
They're being charged because it looks like they accepted a bribe, not because they refused a permit. If they hadn't paid there'd be nothing to charge them with.