Typo: ErrInsufficientPrivliges -> ErrInsufficientPrivileges

The compiler would have caught this....
This commit is contained in:
George Hartzell 2019-06-29 09:08:38 -07:00 committed by GitHub
parent baaaa4e6cc
commit 759fbbae0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}