Update PrescriptionLogic.php
This commit is contained in:
@@ -10,6 +10,7 @@ use app\common\model\tcm\Prescription;
|
|||||||
use app\common\model\tcm\PrescriptionOrder;
|
use app\common\model\tcm\PrescriptionOrder;
|
||||||
use app\common\model\tcm\Diagnosis;
|
use app\common\model\tcm\Diagnosis;
|
||||||
use app\common\service\wechat\WechatWorkAppMessageService;
|
use app\common\service\wechat\WechatWorkAppMessageService;
|
||||||
|
use app\adminapi\logic\auth\AuthLogic;
|
||||||
use think\facade\Config;
|
use think\facade\Config;
|
||||||
use think\facade\Log;
|
use think\facade\Log;
|
||||||
|
|
||||||
@@ -122,6 +123,12 @@ class PrescriptionLogic
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 有业务订单详情权限的用户可以查看关联处方(只读)
|
||||||
|
$perms = AuthLogic::getAuthByAdminId($adminId);
|
||||||
|
if (in_array('tcm.prescriptionOrder/detail', $perms, true)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user