|
@@ -24,8 +24,8 @@ class EnterpriseApi {
|
|
|
$company_info = CompanyApi::getOne($companyId);
|
|
|
$where = [];
|
|
|
$whereRaw = "";
|
|
|
+ $where[] = ['type', '=', session('user')['type']];
|
|
|
if ($company_info['code'] != 'super' && !self::chkUserInSuperusers()) {
|
|
|
- $where[] = ['type', '=', session('user')['type']];
|
|
|
if (session('user')['type'] == 1) {
|
|
|
$whr[] = ["companyId", "=", $companyId];
|
|
|
$whr[] = ["delete", "=", 0];
|
|
@@ -198,8 +198,8 @@ class EnterpriseApi {
|
|
|
$company_info = CompanyApi::getOne($companyId);
|
|
|
$where = [];
|
|
|
$whereRaw = "";
|
|
|
+ $where[] = ['type', '=', session('user')['type']];
|
|
|
if ($company_info['code'] != 'super' && !self::chkUserInSuperusers()) {
|
|
|
- $where[] = ['type', '=', session('user')['type']];
|
|
|
if (session('user')['type'] == 1) {
|
|
|
$whr[] = ["companyId", "=", $companyId];
|
|
|
$whr[] = ["delete", "=", 0];
|
|
@@ -343,8 +343,8 @@ class EnterpriseApi {
|
|
|
$company_info = CompanyApi::getOne($companyId);
|
|
|
$where = [];
|
|
|
$whereRaw = "";
|
|
|
+ $where[] = ['type', '=', session('user')['type']];
|
|
|
if ($company_info['code'] != 'super' && !self::chkUserInSuperusers()) {
|
|
|
- $where[] = ['type', '=', session('user')['type']];
|
|
|
if (session('user')['type'] == 1) {
|
|
|
$whr[] = ["companyId", "=", $companyId];
|
|
|
$whr[] = ["delete", "=", 0];
|