|
@@ -46,7 +46,10 @@ class Base extends \app\BaseController
|
|
|
$share =Db::name("role_share")->where(["is_del"=>0,"status"=>1])->whereOr(["to_user"=>$this->uid,"to_group"=>$group])->select();
|
|
|
if(!empty($share)){
|
|
|
foreach ($share as $value){
|
|
|
- $action['action_conllect'].=$value['action_collect']!=""? ",".$value['action_collect']:"";
|
|
|
+ if($value['action_collect']!=''){
|
|
|
+ $act =Db::name("action")->where(['menuid'=>explode(",",$value['action_collect']),"action_code"=>'001'])->column("id");
|
|
|
+ $action['action_conllect'].=empty($act)?"":",".implode(",",$act);
|
|
|
+ }
|
|
|
if($value['action']==1){
|
|
|
if($value['share_user']!="") $action['write'][]=$value['share_user'];
|
|
|
}
|