65b1657b
auth: add AuthContext.Access
Same logic as server.Access, but lower-level. Useful to check for a permission not covered by the GraphQL schema @access directives (such as builds.sr.ht secrets).
Simon Ser <contact@emersion.fr> — 2023-08-16 13:39:54 UTC
Commit 65b1657b30a1b1cf5ba7e926e2c060d3dabfe1cd —
view raw patch
Parent(s):
a941162e
| File | Status | + | − |
|---|---|---|---|
auth/middleware.go
|
M | +28 | |
server/directives.go
|
M | +3 | -24 |