shish пре 2 година
родитељ
комит
a33bad699e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app-ghs/controllers/GhsController.php

+ 1 - 1
app-ghs/controllers/GhsController.php

@@ -26,7 +26,7 @@ class GhsController extends BaseController
         if (empty($ghs)) {
             util::fail('没有找到供货商');
         }
-        if ($ghs->mainId != $this->mainId) {
+        if ($ghs->ownMainId != $this->mainId) {
             util::fail('不是你的供货商');
         }
         if (empty($name)) {