A signed-in account can still be forbidden from approving a refund or reading payroll. Function-level authorization decides who may perform an operation. The server must make that decision on every request, even when the interface hides the button.
A caller can send the same request without using your interface.
Start with a role check, then use an explicit permission when the policy calls for one. A disabled administrator must lose access, and a tenant administrator must stay within their tenant. Trust the session supplied by the authentication boundary, not a role copied from the request body. The first lab guides the comparison; later labs make you distinguish identity, permission and scope. The in-memory session is a teaching fixture. A production service must establish and validate that identity before authorization runs.
Authorize a privileged operation from trusted permissions and scope.