Access is decided before the app runs
Every request to an app goes through Brod's gateway first. The gateway works out who the visitor is, checks the app's access mode and grants, and only then forwards the request. An app with a bug in its own permission logic, or no permission logic at all, is still behind that check.