mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2025-04-20 00:03:35 +00:00
Typo: ErrInsufficientPrivliges -> ErrInsufficientPrivileges
The compiler would have caught this....
This commit is contained in:
parent
baaaa4e6cc
commit
759fbbae0f
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