* Fix permission of dmdb.

This commit is contained in:
朱金勇
2023-12-20 14:21:38 +08:00
parent ac630e19a3
commit 826b9ebf98
3 changed files with 11 additions and 9 deletions
+6 -6
View File
@@ -19,7 +19,7 @@ $(document).ready(function()
$('#account').focus();
$("#langs li > a").click(function()
$("#langs li > a").click(function()
{
selectLang($(this).data('value'));
});
@@ -53,9 +53,9 @@ $(document).ready(function()
url: link,
dataType: 'json',
method: 'POST',
data:
data:
{
"account": account,
"account": account,
"password": hasMD5 ? md5(md5(password) + rand) : password,
'passwordStrength' : passwordStrength,
'referer' : referer,
@@ -65,7 +65,7 @@ $(document).ready(function()
},
success:function(data)
{
if(data.result == 'fail')
if(data.result == 'fail')
{
alert(data.message);
if($('.captchaBox').length == 1) $('.captchaBox .input-group .input-group-addon img').click();
@@ -81,7 +81,7 @@ $(document).ready(function()
});
/**
* Refresh captcha.
* Refresh captcha.
*/
$('.captchaBox .input-group .input-group-addon img').click(function()
{
@@ -95,7 +95,7 @@ $(document).ready(function()
/**
* Show notice for one click package use weak password.
*
*
* @access public
* @return void
*/
+1 -1
View File
@@ -1792,7 +1792,7 @@ class userModel extends model
/* Init objects. */
static $allProducts, $allPrograms, $allProjects, $allSprints, $teams, $stakeholders, $productWhiteList, $whiteList;
if($allProducts === null) $allProducts = $this->dao->select('id,PO,QD,RD,createdBy,acl,whitelist,program,createdBy')->from(TABLE_PRODUCT)->where('acl')->ne('open')->fetchAll('id');
if($allProducts === null) $allProducts = $this->dao->select('id,PO,QD,RD,acl,whitelist,program,createdBy')->from(TABLE_PRODUCT)->where('acl')->ne('open')->fetchAll('id');
if($allProjects === null) $allProjects = $this->dao->select('id,PO,PM,QD,RD,acl,type,path,parent,openedBy')->from(TABLE_PROJECT)->where('acl')->ne('open')->andWhere('type')->eq('project')->fetchAll('id');
if($allPrograms === null) $allPrograms = $this->dao->select('id,PO,PM,QD,RD,acl,type,path,parent,openedBy')->from(TABLE_PROGRAM)->where('acl')->ne('open')->andWhere('type')->eq('program')->fetchAll('id');
if($allSprints === null) $allSprints = $this->dao->select('id,PO,PM,QD,RD,acl,project,path,parent,type,openedBy')->from(TABLE_PROJECT)->where('acl')->eq('private')->andWhere('type')->in('sprint,stage,kanban')->fetchAll('id');