Properly pass organization context to handlers
parent
b67b2e8d6e
commit
450a965019
|
@ -139,6 +139,7 @@ func AuthorizedUser(
|
||||||
}
|
}
|
||||||
|
|
||||||
if hasAuthorizedRole(u, role) {
|
if hasAuthorizedRole(u, role) {
|
||||||
|
r = r.WithContext(ctx)
|
||||||
next(w, r)
|
next(w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue