# Function and Role-Level Authorization

> Compare what the viewer, accountant and owner roles may do with what the server enforces, including hidden buttons, API routes, methods and old API versions.

Canonical: https://codelivly.com/rooms/function-and-role-level-authorization
Last updated: 2026-11-25

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 5 |
| Estimated time | 2 h 40 min |
| XP | 1150 |

A hidden button is not an access control. This room tests functions rather than records: which role may approve, void, export or administer, and whether the server says no on every route that reaches the function. You list functions and hidden actions, compare the three Ledgerline roles with the intended matrix, separate interface behaviour from API enforcement, and compare methods and API versions for the same function. Every result comes from exports and canned lab hosts, state changing requests go only to test objects the tester created, and each lesson separates real candidates from usability notes and secure behaviour.

## Lessons

1. Functions, Roles and Hidden Actions (30 min)
2. Viewer, Accountant and Owner Differences (30 min)
3. Enforcement in the API Versus the Interface (30 min)
4. Method and Version Differences (30 min)
5. Guided Lab: Complete the Role by Function Matrix (40 min)

## Related

- [Learning path: Access Control and Multi-Tenant Security](https://codelivly.com/learning-paths/access-control-and-multi-tenant-security)
- [All rooms](https://codelivly.com/rooms)
