Skip to content

Commit

Permalink
consent: Resolves broken consent detection
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas committed May 18, 2018
1 parent 669f134 commit a7949ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion consent/manager_memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ func (m *MemoryManager) FindPreviouslyGrantedConsentRequests(client string, subj
var rs []HandledConsentRequest
for _, c := range m.handledConsentRequests {
cr, err := m.GetConsentRequest(c.Challenge)
if err != nil {
if errors.Cause(err) == pkg.ErrNotFound {
return nil, errors.WithStack(errNoPreviousConsentFound)
} else if err != nil {
return nil, err
}

Expand Down

0 comments on commit a7949ed

Please sign in to comment.