mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-23 14:14:05 +00:00
Merge pull request #17 from hartzell/patch-2
Typo: ErrInsufficientPrivliges -> ErrInsufficientPrivileges
This commit is contained in:
commit
aef58c4d06
|
@ -226,7 +226,7 @@ func GetItem(ctx context.Context, json []bytes) (Item, error) {
|
||||||
return NullItem, err
|
return NullItem, err
|
||||||
}
|
}
|
||||||
if !GetUserFromContext(ctx).IsAdmin() {
|
if !GetUserFromContext(ctx).IsAdmin() {
|
||||||
return NullItem, ErrInsufficientPrivliges
|
return NullItem, ErrInsufficientPrivileges
|
||||||
}
|
}
|
||||||
return db.GetItem(order.ItemID)
|
return db.GetItem(order.ItemID)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue