# Ad-Hoc Permission Checks

> Authorization logic scattered inline throughout the codebase instead of centralized, leaving checks inconsistent and easy to omit.

Record: `lexicon:ad-hoc-permission-checks`
Kind: anti-pattern
Layer: [Security Core](https://banes-lab.com/records/layer/security-core.md)
Canonical: https://banes-lab.com/ontology/lexicon#lexicon-ad-hoc-permission-checks

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Read Performance](https://banes-lab.com/records/lexicon/read-performance.md) and before [Ambient-Credential Trust](https://banes-lab.com/records/lexicon/ambient-credential-trust.md).

## Category

- [Security Privacy Compliance](https://banes-lab.com/records/lexicon-category/security-privacy-compliance.md)

## Negated by

- [RBAC](https://banes-lab.com/records/architecture/role-based-access-control.md)

## Linked from

- [Security / Privacy / Compliance / Governance](https://banes-lab.com/ontology/principles/architecture-category-security-privacy-compliance-governance.md)
