Browse Source

ensure only one pending entitlement request per subject

Mark deVilliers 2 years ago
parent
commit
f0abe6a152
1 changed files with 1 additions and 1 deletions
  1. 1 1
      node/api/entitlements.go

+ 1 - 1
node/api/entitlements.go

@@ -192,7 +192,7 @@ func (e entitlementResource) createRequest(request *restful.Request, response *r
192 192
 		Status:             Requested,
193 193
 	}
194 194
 
195
-	e.store.Requested.Add(entitlement)
195
+	e.store.Requested.AppendOrReplaceOnSubject(entitlement)
196 196
 	response.WriteEntity(entitlement)
197 197
 
198 198
 }