作者: zhgc 时间: 2022-5-29 14:59
SELECT * FROM `zt_userview` wHeRe account = 'admin'
DELETE FROM `zt_grouppriv` wHeRe `group` = '17' AND module IN ('index','my','todo','product','branch','story','productplan','release','project','task','build','qa','bug','testcase','testtask','testreport','testsuite','caselib','doc','mail','custom','datatable','svn','git','company','dept','group','user','tree','report','search','admin','extension','editor','convert','api','file','misc','message','action','backup','cron','dev','chat')
REPLACE `zt_grouppriv` SET `group` = '17',`module` = 'index',`method` = 'index'作者: zhgc 时间: 2022-5-29 15:37
添加对info页面的支持
public function checkPriv()
{
$module = $this->app->getModuleName();
$method = $this->app->getMethodName();
if(!empty($this->app->user->modifyPassword) and (($module != 'my' or $method != 'changepassword') and ($module != 'user' or $method != 'logout'))) die(js::locate(helper::createLink('my', 'changepassword')));