1.优化渠道管理中直属投注额度和总投注额度
2.管理员管理中三个菜单数据显示限制
This commit is contained in:
@@ -37,8 +37,9 @@ class AdminWalletRecord extends Backend
|
||||
list($where, $alias, $limit, $order) = $this->queryBuilder();
|
||||
$table = strtolower($this->model->getTable());
|
||||
$mainShort = $alias[$table] ?? '';
|
||||
if ($mainShort !== '' && $this->auth && !$this->auth->isSuperAdmin()) {
|
||||
$where[] = [$mainShort . '.admin_id', '=', intval($this->auth->id ?? 0)];
|
||||
$scopedAdminIds = $this->getManageableScopeAdminIds();
|
||||
if ($mainShort !== '' && $scopedAdminIds !== []) {
|
||||
$where[] = [$mainShort . '.admin_id', 'in', $scopedAdminIds];
|
||||
}
|
||||
|
||||
$res = $this->model
|
||||
|
||||
Reference in New Issue
Block a user