|
@@ -31,8 +31,8 @@ class UseScopeBaseModel extends Model
|
|
|
}else{
|
|
|
if($auth_type == 1) { //我的
|
|
|
$query->where('number',$user['number']);
|
|
|
- }elseif ($auth_type == 2 || $auth_type == 3){
|
|
|
- //自己权限范围内的部门 或 所有
|
|
|
+ }elseif ($auth_type == 2){
|
|
|
+ //自己权限范围内的部门
|
|
|
$query->whereIn('number', $man_number);
|
|
|
}
|
|
|
}
|
|
@@ -53,8 +53,8 @@ class UseScopeBaseModel extends Model
|
|
|
}else{
|
|
|
if($auth_type == 1) { //我的
|
|
|
$query->where('number',$user['number']);
|
|
|
- }elseif ($auth_type == 2 || $auth_type == 3){
|
|
|
- //自己权限范围内的部门 或 所有
|
|
|
+ }elseif ($auth_type == 2){
|
|
|
+ //自己权限范围内的部门
|
|
|
$query->whereIn('number', $man_number);
|
|
|
}
|
|
|
}
|