Earlier quoted context omitted.
These permits in CA are may-issue, not shall-issue. The sheriff can deny for any reason (of course they aren't supposed to ask for a bribe).
Soliciting bribes is explicitly against the law, and that has nothing to do with "may" vs "shall" issue.
Edit: Since you wouldn't respond... denying a permit under a shall-issue scheme would require proof that they didn't meet the statutory requirements instead of providing the issuer with the ability to hide their reason behind an arbitrary excuse.