diff --git a/app/article/controller/Index.php b/app/article/controller/Index.php index 608314a..d46bf06 100644 --- a/app/article/controller/Index.php +++ b/app/article/controller/Index.php @@ -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, '无权限访问'); diff --git a/app/install/data/gouguoa.sql b/app/install/data/gouguoa.sql index 4d746f9..273a508 100644 --- a/app/install/data/gouguoa.sql +++ b/app/install/data/gouguoa.sql @@ -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 '展示开始时间',