We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e916c6 commit eaa47c3Copy full SHA for eaa47c3
services/context/org.go
@@ -70,8 +70,9 @@ type OrgAssignmentOptions struct {
70
}
71
72
// OrgAssignment returns a middleware to handle organization assignment
73
-func OrgAssignment(opts OrgAssignmentOptions) func(ctx *Context) {
+func OrgAssignment(orgAssignmentOpts OrgAssignmentOptions) func(ctx *Context) {
74
return func(ctx *Context) {
75
+ opts := orgAssignmentOpts // it must be a copy, because the values will be changed
76
var err error
77
if ctx.ContextUser == nil {
78
// if Organization is not defined, get it from params
0 commit comments