Bladeren bron

feat: EK-856: 管理员增加“Country”属性.

kevinElken 10 maanden geleden
bovenliggende
commit
e3747d24f4
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      backendApi/modules/v1/controllers/SiteController.php

+ 1 - 1
backendApi/modules/v1/controllers/SiteController.php

@@ -187,7 +187,7 @@ class SiteController extends BaseController
                 $adminId = Yii::$app->getUser()->getUserInfo()['id'];
                 $adminCountry = AdminCountry::getCountry($adminId);
 
-//                $countries = array_filter($countries, fn($country) => in_array($country['ID'], $adminCountry));
+                $countries = array_filter($countries, fn($country) => in_array($country['ID'], $adminCountry));
             }
         }