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