Skip to content

Commit 96a5727

Browse files
committed
Cleanup comments
1 parent 63727e0 commit 96a5727

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coderd/httpmw/authorize.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ type authObjectKey struct{}
8383
type RBACObject struct {
8484
Object rbac.Object
8585

86+
// WithOwner will set the Object.Owner field based on the request.
87+
// This allows the Owner field to be set dynamically based on the context
88+
// of the request.
8689
WithOwner func(r *http.Request) uuid.UUID
8790
}
8891

89-
// APIKey returns the API key from the ExtractAPIKey handler.
9092
func rbacObject(r *http.Request) RBACObject {
9193
obj, ok := r.Context().Value(authObjectKey{}).(RBACObject)
9294
if !ok {

0 commit comments

Comments
 (0)