删除无用的模板文件

修正样品申请区域权限
This commit is contained in:
2021-02-26 06:19:10 +08:00
parent 427dabb95d
commit 2418516c49
6 changed files with 9 additions and 527 deletions
@@ -14,6 +14,7 @@ use Gdoo\Model\Form;
use Gdoo\Order\Services\OrderService;
use Gdoo\Index\Controllers\WorkflowController;
use Gdoo\User\Services\UserService;
class SampleApplyController extends WorkflowController
{
@@ -79,9 +80,8 @@ class SampleApplyController extends WorkflowController
}
if ($this->access['index'] <> 4) {
// 这里需要包括创建者权限
$authorise = User::authoriseAccess();
$model->whereIn('sample_apply.created_id', $authorise);
$region = regionCustomer('customer');
$model->whereIn('sample_apply.region_id', $region['regionIn']);
}
$model->select($header['select']);
@@ -153,9 +153,8 @@ class SampleApplyController extends WorkflowController
}
if ($this->access['index'] <> 4) {
// 这里需要包括创建者权限
$authorise = User::authoriseAccess();
$model->whereIn('sample_apply.created_id', $authorise);
$region = regionCustomer('customer');
$model->whereIn('sample_apply.region_id', $region['regionIn']);
}
$model->select($header['select']);