aboutsummaryrefslogtreecommitdiff
path: root/item/hooks.go
diff options
context:
space:
mode:
Diffstat (limited to 'item/hooks.go')
-rw-r--r--item/hooks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/item/hooks.go b/item/hooks.go
index ddb9a44..558a8cb 100644
--- a/item/hooks.go
+++ b/item/hooks.go
@@ -25,7 +25,7 @@ import (
func (i *SavedItem) BeforeSave(tx *gorm.DB) error {
var err error
- err = checkIfBrandExists(i.BrandID)
+ err = checkIfBrandExists(i.BrandID, i.UserID)
if err != nil {
return err
}