docs: correct module authorization comments
This commit is contained in:
@@ -891,9 +891,11 @@ describe.sequential("live API — platform owner and delegated grant management"
|
||||
const ownerEmail = "[email protected]";
|
||||
const managerEmail = "[email protected]";
|
||||
const password = "correct horse battery staple";
|
||||
// Module permission registration does not exist yet, so `core.authorization.grants.manage` —
|
||||
// the one permission `CORE_PERMISSION_REGISTRY` actually declares — stands in for "some
|
||||
// registered permission" throughout this scenario's explicit-grant lifecycle.
|
||||
// This scenario intentionally proves out the explicit-grant lifecycle (create, list, use,
|
||||
// revoke) against Core's own grant-management permission rather than a module's — a module
|
||||
// permission would exercise the exact same route and evaluator code, adding coverage breadth
|
||||
// without coverage depth. The "live API — installed module permission end-to-end" scenario
|
||||
// below is where a real installed module's declared permission is proven end-to-end instead.
|
||||
const testPermission = "core.authorization.grants.manage";
|
||||
// Well-formed (passes `PermissionId` shape validation) but never registered — used to prove the
|
||||
// live route rejects it even for a caller who otherwise has full grant-management authority.
|
||||
|
||||
Reference in New Issue
Block a user