nil claims
This commit is contained in:
parent
e5274e0e9d
commit
384002155a
1 changed files with 4 additions and 1 deletions
|
@ -203,7 +203,10 @@ func handleCreater(c creater) errorHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
con := context.Get(r, "claims")
|
con := context.Get(r, "claims")
|
||||||
var claims Claims = con.(Claims)
|
var claims Claims
|
||||||
|
if con != nil {
|
||||||
|
claims = con.(Claims)
|
||||||
|
}
|
||||||
|
|
||||||
appErr := c.create(&e, claims)
|
appErr := c.create(&e, claims)
|
||||||
if appErr != nil {
|
if appErr != nil {
|
||||||
|
|
Reference in a new issue