优化知识分享bug修改
This commit is contained in:
parent
b2f541a282
commit
cbd83e10d0
@ -200,7 +200,7 @@ class Index extends BaseController
|
||||
}
|
||||
$share_dids = [];
|
||||
if(!empty($detail['share_dids'])){
|
||||
$share_uids = explode(',', $detail['share_dids']);
|
||||
$share_dids = explode(',', $detail['share_dids']);
|
||||
}
|
||||
if($detail['uid'] !=$uid && !in_array($uid,$share_uids) && !in_array($did,$share_dids) && $detail['is_share'] !=1){
|
||||
throw new \think\exception\HttpException(405, '无权限访问');
|
||||
|
@ -1028,9 +1028,9 @@ CREATE TABLE `oa_note` (
|
||||
`content` text NOT NULL COMMENT '公告内容',
|
||||
`src` varchar(100) NULL DEFAULT NULL COMMENT '关联链接',
|
||||
`status` int(1) NOT NULL DEFAULT 1 COMMENT '1可用-1禁用',
|
||||
`sort` int(11) NOT NULL DEFAULT 0,
|
||||
`sort` int(11) NOT NULL DEFAULT 0 COMMENT '排序',
|
||||
`file_ids` varchar(500) NOT NULL DEFAULT '' COMMENT '相关附件',
|
||||
`role_type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '查看权限,0所有人,1部门,2人员',
|
||||
`role_type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '查看权限,0所有人,1部门,2人员',
|
||||
`role_dids` varchar(500) NOT NULL DEFAULT '' COMMENT '可查看部门',
|
||||
`role_uids` varchar(500) NOT NULL DEFAULT '' COMMENT '可查看用户',
|
||||
`start_time` int(11) NOT NULL DEFAULT 0 COMMENT '展示开始时间',
|
||||
|
Loading…
x
Reference in New Issue
Block a user