diff --git a/_config.php b/_config.php index a061bc8..eb0baf9 100644 --- a/_config.php +++ b/_config.php @@ -8,4 +8,9 @@ $GXCPEROLES = $configJson['gxcperoles']; $GXYFEROLES = $configJson['gxyferoles']; $XFVROLES = $configJson['xfvroles']; $XFYYEROLES = $configJson['xfyyeroles']; + +$DBVROLES = $configJson['dbvroles']; +$DBYYEROLES = $configJson['dbyyeroles']; +$DBCPEROLES = $configJson['dbcperoles']; +$DBYFEROLES = $configJson['dbyferoles']; ?> \ No newline at end of file diff --git a/pmcalendar.php b/pmcalendar.php index c27f086..218932c 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -11,6 +11,11 @@ $isgxyferole = in_array($user['name'], $GXYFEROLES);//更新研发中心编辑 $isxfvrole = in_array($user['name'], $XFVROLES); //修复信息查看区浏览权限 $isxfyyerole = in_array($user['name'], $XFYYEROLES);//修复运营中心编辑权限 +$isdbvrole ='1'; //in_array($user['name'], $DBVROLES); //打包信息查看区浏览权限 +$isdbyyerole = in_array($user['name'], $DBYYEROLES);//打包运营中心编辑权限 +$isdbcperole = in_array($user['name'], $DBCPEROLES);//打包产品中心编辑权限 +$isdbyferole = in_array($user['name'], $DBYFEROLES);//打包研发中心编辑权限 + function fix2($v) { $x = '00' . $v;