Merge pull request #17 from hartzell/patch-2

Typo: ErrInsufficientPrivliges -> ErrInsufficientPrivileges
This commit is contained in:
Lasse Martin Jakobsen 2019-07-01 07:10:13 +02:00 committed by GitHub
commit aef58c4d06
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)
}