mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2025-04-19 07:43:36 +00:00
Merge pull request #17 from hartzell/patch-2
Typo: ErrInsufficientPrivliges -> ErrInsufficientPrivileges
This commit is contained in:
commit
aef58c4d06
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ func GetItem(ctx context.Context, json []bytes) (Item, error) {
|
|||
return NullItem, err
|
||||
}
|
||||
if !GetUserFromContext(ctx).IsAdmin() {
|
||||
return NullItem, ErrInsufficientPrivliges
|
||||
return NullItem, ErrInsufficientPrivileges
|
||||
}
|
||||
return db.GetItem(order.ItemID)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue