Skip to content

Commit

Permalink
vendor: update to ladon 0.8.0 - closes #503
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) committed Jun 17, 2017
1 parent ea6be46 commit df41e89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import:
- package: github.com/ory/herodot
version: 0.0.3
- package: github.com/ory/ladon
version: 0.7.7
version: 0.8.0
subpackages:
- manager/memory
- manager/sql
Expand Down
7 changes: 1 addition & 6 deletions policy/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,7 @@ func (h *Handler) Update(w http.ResponseWriter, r *http.Request, ps httprouter.P
return
}

if err := h.Manager.Delete(p.ID); err != nil {
h.H.WriteError(w, r, errors.WithStack(err))
return
}

if err := h.Manager.Create(&p); err != nil {
if err := h.Manager.Update(&p); err != nil {
h.H.WriteError(w, r, errors.WithStack(err))
return
}
Expand Down

0 comments on commit df41e89

Please sign in to comment.