* Fix bug of task #89149.

This commit is contained in:
liumengyi
2023-03-29 09:16:48 +08:00
parent be75bd716f
commit d4a8dbb88b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ function toggleAcl(acl, type)
var moduleID = $('#module').val();
if(moduleID.indexOf('_') >= 0) libID = moduleID.substr(0, moduleID.indexOf('_'));
}
if(acl == 'default' && $('#libTypewiki').attr('checked') != 'checked')
if(acl == 'default' && ($('#libTypeapi').attr('checked') == 'checked' || libType == 'api'))
{
$('#whiteListBox').removeClass('hidden');
$('#groupBox').removeClass('hidden');
+1 -1
View File
@@ -206,7 +206,7 @@ class docModel extends model
$execution = $this->loadModel('execution')->getByID($lib->execution);
$lib->project = $execution->project;
}
if($this->post->libType) $lib->type = 'api';
if($this->post->libType == 'api') $lib->type = 'api';
if($lib->acl == 'custom' or $lib->acl == 'private')
{