|
@@ -1342,7 +1342,7 @@ if (!function_exists('checkHasAccountBySupplierNos')) {
|
|
|
|
|
|
//获取当前用户可查看的其他用户id(新版的)
|
|
|
if (!function_exists('get_group_share_uid')) {
|
|
|
- function get_group_share_uid(int $uid = 0)
|
|
|
+ function get_group_share_uid(int $uid = 0,int $level=2)
|
|
|
{
|
|
|
//原始数据
|
|
|
$data = [DataGroupModel::$type_可编辑 => [$uid], DataGroupModel::$type_只读 => [$uid], DataGroupModel::$type_不共享 => []];
|
|
@@ -1377,7 +1377,7 @@ if (!function_exists('get_group_share_uid')) {
|
|
|
$api = app('http')->getName() . '/' . request()->pathinfo();
|
|
|
|
|
|
$menu_id = Db::name('admin_menu')
|
|
|
- ->where(['is_del' => 0, 'menu_api' => $api])
|
|
|
+ ->where(['is_del' => 0, 'menu_api' => $api,'level'=>$level])
|
|
|
->value('id', 0);
|
|
|
if ($menu_id) {
|
|
|
//共享规则
|